From b1865d4030e64b6ff4c3b8733c2666059e86136d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:05:52 +0000 Subject: [PATCH 1/3] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 4.11.1 --- CONTRIBUTING.md | 114 ++ reference.md | 1288 ++++------------- .../client/mgmt/AsyncRawActionsClient.java | 85 ++ .../client/mgmt/AsyncRawBrandingClient.java | 25 + .../mgmt/AsyncRawClientGrantsClient.java | 61 + .../client/mgmt/AsyncRawClientsClient.java | 97 ++ .../AsyncRawConnectionProfilesClient.java | 85 ++ .../mgmt/AsyncRawConnectionsClient.java | 73 + .../mgmt/AsyncRawCustomDomainsClient.java | 109 ++ .../mgmt/AsyncRawDeviceCredentialsClient.java | 37 + .../mgmt/AsyncRawEmailTemplatesClient.java | 49 + .../mgmt/AsyncRawEventStreamsClient.java | 73 + .../client/mgmt/AsyncRawEventsClient.java | 18 +- .../client/mgmt/AsyncRawFlowsClient.java | 61 + .../client/mgmt/AsyncRawFormsClient.java | 61 + .../client/mgmt/AsyncRawGroupsClient.java | 37 + .../client/mgmt/AsyncRawHooksClient.java | 61 + .../auth0/client/mgmt/AsyncRawJobsClient.java | 13 + .../client/mgmt/AsyncRawLogStreamsClient.java | 61 + .../auth0/client/mgmt/AsyncRawLogsClient.java | 25 + .../mgmt/AsyncRawNetworkAclsClient.java | 73 + .../mgmt/AsyncRawOrganizationsClient.java | 73 + .../client/mgmt/AsyncRawPromptsClient.java | 25 + .../mgmt/AsyncRawRateLimitPoliciesClient.java | 61 + .../mgmt/AsyncRawRefreshTokensClient.java | 61 + .../mgmt/AsyncRawResourceServersClient.java | 61 + .../client/mgmt/AsyncRawRolesClient.java | 61 + .../client/mgmt/AsyncRawRulesClient.java | 61 + .../mgmt/AsyncRawRulesConfigsClient.java | 37 + .../AsyncRawSelfServiceProfilesClient.java | 61 + .../client/mgmt/AsyncRawSessionsClient.java | 49 + .../client/mgmt/AsyncRawStatsClient.java | 25 + .../AsyncRawSupplementalSignalsClient.java | 25 + .../client/mgmt/AsyncRawTicketsClient.java | 25 + .../AsyncRawTokenExchangeProfilesClient.java | 61 + .../AsyncRawUserAttributeProfilesClient.java | 85 ++ .../client/mgmt/AsyncRawUserBlocksClient.java | 49 + .../client/mgmt/AsyncRawUserGrantsClient.java | 37 + .../client/mgmt/AsyncRawUsersClient.java | 97 ++ .../auth0/client/mgmt/AsyncUsersClient.java | 9 - .../auth0/client/mgmt/RawActionsClient.java | 78 + .../auth0/client/mgmt/RawBrandingClient.java | 23 + .../client/mgmt/RawClientGrantsClient.java | 56 + .../auth0/client/mgmt/RawClientsClient.java | 89 ++ .../mgmt/RawConnectionProfilesClient.java | 78 + .../client/mgmt/RawConnectionsClient.java | 67 + .../client/mgmt/RawCustomDomainsClient.java | 100 ++ .../mgmt/RawDeviceCredentialsClient.java | 34 + .../client/mgmt/RawEmailTemplatesClient.java | 45 + .../client/mgmt/RawEventStreamsClient.java | 67 + .../auth0/client/mgmt/RawEventsClient.java | 18 +- .../com/auth0/client/mgmt/RawFlowsClient.java | 56 + .../com/auth0/client/mgmt/RawFormsClient.java | 56 + .../auth0/client/mgmt/RawGroupsClient.java | 34 + .../com/auth0/client/mgmt/RawHooksClient.java | 56 + .../com/auth0/client/mgmt/RawJobsClient.java | 12 + .../client/mgmt/RawLogStreamsClient.java | 56 + .../com/auth0/client/mgmt/RawLogsClient.java | 23 + .../client/mgmt/RawNetworkAclsClient.java | 67 + .../client/mgmt/RawOrganizationsClient.java | 67 + .../auth0/client/mgmt/RawPromptsClient.java | 23 + .../mgmt/RawRateLimitPoliciesClient.java | 56 + .../client/mgmt/RawRefreshTokensClient.java | 56 + .../client/mgmt/RawResourceServersClient.java | 56 + .../com/auth0/client/mgmt/RawRolesClient.java | 56 + .../com/auth0/client/mgmt/RawRulesClient.java | 56 + .../client/mgmt/RawRulesConfigsClient.java | 34 + .../mgmt/RawSelfServiceProfilesClient.java | 56 + .../auth0/client/mgmt/RawSessionsClient.java | 45 + .../com/auth0/client/mgmt/RawStatsClient.java | 23 + .../mgmt/RawSupplementalSignalsClient.java | 23 + .../auth0/client/mgmt/RawTicketsClient.java | 23 + .../mgmt/RawTokenExchangeProfilesClient.java | 56 + .../mgmt/RawUserAttributeProfilesClient.java | 78 + .../client/mgmt/RawUserBlocksClient.java | 45 + .../client/mgmt/RawUserGrantsClient.java | 34 + .../com/auth0/client/mgmt/RawUsersClient.java | 89 ++ .../com/auth0/client/mgmt/UsersClient.java | 9 - .../actions/AsyncRawExecutionsClient.java | 13 + .../mgmt/actions/AsyncRawModulesClient.java | 85 ++ .../mgmt/actions/AsyncRawTriggersClient.java | 13 + .../mgmt/actions/AsyncRawVersionsClient.java | 37 + .../mgmt/actions/RawExecutionsClient.java | 12 + .../client/mgmt/actions/RawModulesClient.java | 78 + .../mgmt/actions/RawTriggersClient.java | 12 + .../mgmt/actions/RawVersionsClient.java | 34 + .../modules/AsyncRawVersionsClient.java | 37 + .../actions/modules/RawVersionsClient.java | 34 + ...ActionModuleVersionsRequestParameters.java | 21 +- .../triggers/AsyncRawBindingsClient.java | 25 + .../actions/triggers/RawBindingsClient.java | 23 + ...ctionTriggerBindingsRequestParameters.java | 21 +- .../CreateActionModuleRequestContent.java | 2 - ...tActionModuleActionsRequestParameters.java | 21 +- .../GetActionModulesRequestParameters.java | 21 +- .../ListActionVersionsRequestParameters.java | 21 +- ...RollbackActionModuleRequestParameters.java | 1 - .../mgmt/anomaly/AsyncRawBlocksClient.java | 25 + .../client/mgmt/anomaly/RawBlocksClient.java | 23 + .../AsyncRawBotDetectionClient.java | 25 + ...yncRawBreachedPasswordDetectionClient.java | 25 + .../AsyncRawBruteForceProtectionClient.java | 25 + .../AsyncRawCaptchaClient.java | 25 + ...AsyncRawPhoneProviderProtectionClient.java | 25 + .../AsyncRawSuspiciousIpThrottlingClient.java | 25 + .../RawBotDetectionClient.java | 23 + .../RawBreachedPasswordDetectionClient.java | 23 + .../RawBruteForceProtectionClient.java | 23 + .../attackprotection/RawCaptchaClient.java | 23 + .../RawPhoneProviderProtectionClient.java | 23 + .../RawSuspiciousIpThrottlingClient.java | 23 + .../branding/AsyncRawTemplatesClient.java | 37 + .../mgmt/branding/AsyncRawThemesClient.java | 61 + .../mgmt/branding/RawTemplatesClient.java | 34 + .../client/mgmt/branding/RawThemesClient.java | 56 + .../phone/AsyncRawProvidersClient.java | 73 + .../phone/AsyncRawTemplatesClient.java | 85 ++ .../branding/phone/RawProvidersClient.java | 67 + .../branding/phone/RawTemplatesClient.java | 78 + ...tePhoneProviderSendTestRequestContent.java | 1 - ...emplateTestNotificationRequestContent.java | 1 - ...andingPhoneProvidersRequestParameters.java | 12 +- .../ListPhoneTemplatesRequestParameters.java | 12 +- .../AsyncRawOrganizationsClient.java | 13 + .../clientgrants/RawOrganizationsClient.java | 12 + ...ntGrantOrganizationsRequestParameters.java | 21 +- .../clients/AsyncRawConnectionsClient.java | 13 + .../clients/AsyncRawCredentialsClient.java | 61 + .../mgmt/clients/RawConnectionsClient.java | 12 + .../mgmt/clients/RawCredentialsClient.java | 56 + .../clients/types/ConnectionsGetRequest.java | 44 +- .../connections/AsyncRawClientsClient.java | 25 + .../AsyncRawDirectoryProvisioningClient.java | 97 ++ .../mgmt/connections/AsyncRawKeysClient.java | 37 + .../AsyncRawScimConfigurationClient.java | 73 + .../mgmt/connections/AsyncRawUsersClient.java | 13 + .../mgmt/connections/RawClientsClient.java | 23 + .../RawDirectoryProvisioningClient.java | 89 ++ .../mgmt/connections/RawKeysClient.java | 34 + .../RawScimConfigurationClient.java | 67 + .../mgmt/connections/RawUsersClient.java | 12 + .../AsyncRawSynchronizationsClient.java | 13 + .../RawSynchronizationsClient.java | 12 + .../AsyncRawTokensClient.java | 37 + .../scimconfiguration/RawTokensClient.java | 34 + ...ConnectionUsersByEmailQueryParameters.java | 5 +- ...ectionEnabledClientsRequestParameters.java | 21 +- ...rectoryProvisioningsRequestParameters.java | 21 +- ...stScimConfigurationsRequestParameters.java | 21 +- ...stSynchronizedGroupsRequestParameters.java | 21 +- ...UpdateScimConfigurationRequestContent.java | 1 - .../mgmt/core/DateTimeDeserializer.java | 21 +- .../client/mgmt/core/RetryInterceptor.java | 33 +- .../mgmt/emails/AsyncRawProviderClient.java | 49 + .../client/mgmt/emails/RawProviderClient.java | 45 + .../GetEmailProviderRequestParameters.java | 21 +- .../AsyncRawDeliveriesClient.java | 25 + .../AsyncRawRedeliveriesClient.java | 25 + .../eventstreams/RawDeliveriesClient.java | 23 + .../eventstreams/RawRedeliveriesClient.java | 23 + ...ventStreamDeliveriesRequestParameters.java | 57 +- .../mgmt/flows/AsyncRawExecutionsClient.java | 37 + .../mgmt/flows/RawExecutionsClient.java | 34 + .../GetFlowExecutionRequestParameters.java | 8 + .../ListFlowExecutionsRequestParameters.java | 21 +- .../vault/AsyncRawConnectionsClient.java | 61 + .../flows/vault/RawConnectionsClient.java | 56 + ...lowsVaultConnectionsRequestParameters.java | 30 +- .../mgmt/groups/AsyncRawMembersClient.java | 13 + .../mgmt/groups/AsyncRawRolesClient.java | 37 + .../client/mgmt/groups/RawMembersClient.java | 12 + .../client/mgmt/groups/RawRolesClient.java | 34 + .../GetGroupMembersRequestParameters.java | 39 +- .../ListGroupRolesRequestParameters.java | 21 +- .../guardian/AsyncRawEnrollmentsClient.java | 37 + .../mgmt/guardian/AsyncRawFactorsClient.java | 25 + .../mgmt/guardian/AsyncRawPoliciesClient.java | 25 + .../mgmt/guardian/RawEnrollmentsClient.java | 34 + .../mgmt/guardian/RawFactorsClient.java | 23 + .../mgmt/guardian/RawPoliciesClient.java | 23 + .../guardian/factors/AsyncRawPhoneClient.java | 97 ++ .../AsyncRawPushNotificationClient.java | 145 ++ .../guardian/factors/AsyncRawSmsClient.java | 87 +- .../mgmt/guardian/factors/AsyncSmsClient.java | 6 +- .../mgmt/guardian/factors/RawPhoneClient.java | 89 ++ .../factors/RawPushNotificationClient.java | 133 ++ .../mgmt/guardian/factors/RawSmsClient.java | 76 +- .../mgmt/guardian/factors/SmsClient.java | 5 +- .../factors/duo/AsyncRawSettingsClient.java | 37 + .../factors/duo/RawSettingsClient.java | 34 + ...ianFactorPhoneTemplatesRequestContent.java | 2 - ...rdianFactorSmsTemplatesRequestContent.java | 2 - ...uardianEnrollmentTicketRequestContent.java | 1 - .../SetGuardianFactorRequestContent.java | 1 - .../mgmt/hooks/AsyncRawSecretsClient.java | 49 + .../client/mgmt/hooks/RawSecretsClient.java | 45 + .../client/mgmt/jobs/AsyncErrorsClient.java | 5 +- .../mgmt/jobs/AsyncRawErrorsClient.java | 24 +- .../mgmt/jobs/AsyncRawUsersExportsClient.java | 13 + .../mgmt/jobs/AsyncRawUsersImportsClient.java | 47 +- .../jobs/AsyncRawVerificationEmailClient.java | 13 + .../auth0/client/mgmt/jobs/ErrorsClient.java | 5 +- .../client/mgmt/jobs/RawErrorsClient.java | 22 +- .../mgmt/jobs/RawUsersExportsClient.java | 12 + .../mgmt/jobs/RawUsersImportsClient.java | 42 +- .../mgmt/jobs/RawVerificationEmailClient.java | 12 + .../CreateImportUsersRequestContent.java | 1 - ...CreateVerificationEmailRequestContent.java | 1 - .../mgmt/jobs/types/ErrorsGetResponse.java | 10 +- .../keys/AsyncRawCustomSigningClient.java | 37 + .../mgmt/keys/AsyncRawEncryptionClient.java | 85 ++ .../mgmt/keys/AsyncRawSigningClient.java | 49 + .../mgmt/keys/RawCustomSigningClient.java | 34 + .../client/mgmt/keys/RawEncryptionClient.java | 78 + .../client/mgmt/keys/RawSigningClient.java | 45 + .../ImportEncryptionKeyRequestContent.java | 1 - .../ListEncryptionKeysRequestParameters.java | 30 +- .../AsyncRawClientGrantsClient.java | 37 + .../AsyncRawConnectionsClient.java | 61 + .../AsyncRawDiscoveryDomainsClient.java | 73 + .../AsyncRawEnabledConnectionsClient.java | 61 + .../organizations/AsyncRawGroupsClient.java | 13 + .../AsyncRawInvitationsClient.java | 49 + .../organizations/AsyncRawMembersClient.java | 37 + .../organizations/RawClientGrantsClient.java | 34 + .../organizations/RawConnectionsClient.java | 56 + .../RawDiscoveryDomainsClient.java | 67 + .../RawEnabledConnectionsClient.java | 56 + .../mgmt/organizations/RawGroupsClient.java | 12 + .../organizations/RawInvitationsClient.java | 45 + .../mgmt/organizations/RawMembersClient.java | 34 + .../groups/AsyncRawRolesClient.java | 37 + .../organizations/groups/RawRolesClient.java | 34 + ...ganizationGroupRolesRequestParameters.java | 21 +- .../members/AsyncRawEffectiveRolesClient.java | 13 + .../members/AsyncRawRolesClient.java | 37 + .../members/RawEffectiveRolesClient.java | 12 + .../organizations/members/RawRolesClient.java | 34 + .../sources/AsyncRawGroupsClient.java | 13 + .../sources/RawGroupsClient.java | 12 + ...mberRoleSourceGroupsRequestParameters.java | 24 +- ...MemberEffectiveRolesRequestParameters.java | 21 +- ...anizationMemberRolesRequestParameters.java | 30 +- .../roles/AsyncRawMembersClient.java | 13 + .../organizations/roles/RawMembersClient.java | 12 + ...anizationRoleMembersRequestParameters.java | 39 +- ...dOrganizationConnectionRequestContent.java | 1 - ...OrganizationClientGrantRequestContent.java | 1 - ...izationAllConnectionRequestParameters.java | 1 - ...nizationDiscoveryDomainRequestContent.java | 1 - ...eOrganizationInvitationRequestContent.java | 1 - ...ganizationInvitationRequestParameters.java | 21 +- ...zationAllConnectionsRequestParameters.java | 39 +- ...nizationClientGrantsRequestParameters.java | 53 +- ...anizationConnectionsRequestParameters.java | 30 +- ...tionDiscoveryDomainsRequestParameters.java | 21 +- ...stOrganizationGroupsRequestParameters.java | 21 +- ...anizationInvitationsRequestParameters.java | 57 +- ...tOrganizationMembersRequestParameters.java | 39 +- .../prompts/AsyncRawCustomTextClient.java | 25 + .../mgmt/prompts/AsyncRawPartialsClient.java | 25 + .../mgmt/prompts/AsyncRawRenderingClient.java | 49 + .../mgmt/prompts/RawCustomTextClient.java | 23 + .../mgmt/prompts/RawPartialsClient.java | 23 + .../mgmt/prompts/RawRenderingClient.java | 45 + .../types/ListAculsRequestParameters.java | 75 +- .../AsyncRawSettingsClient.java | 25 + .../riskassessments/RawSettingsClient.java | 23 + .../settings/AsyncRawNewDeviceClient.java | 25 + .../settings/RawNewDeviceClient.java | 23 + ...smentsSettingsNewDeviceRequestContent.java | 1 - ...RiskAssessmentsSettingsRequestContent.java | 1 - .../mgmt/roles/AsyncRawGroupsClient.java | 37 + .../mgmt/roles/AsyncRawPermissionsClient.java | 37 + .../mgmt/roles/AsyncRawUsersClient.java | 25 + .../client/mgmt/roles/RawGroupsClient.java | 34 + .../mgmt/roles/RawPermissionsClient.java | 34 + .../client/mgmt/roles/RawUsersClient.java | 23 + .../roles/types/ListRoleGroupsParameters.java | 21 +- .../ListRolePermissionsRequestParameters.java | 30 +- .../types/ListRoleUsersRequestParameters.java | 21 +- .../AsyncRawCustomTextClient.java | 25 + .../AsyncRawSsoTicketClient.java | 25 + .../RawCustomTextClient.java | 23 + .../RawSsoTicketClient.java | 23 + .../mgmt/tenants/AsyncRawSettingsClient.java | 25 + .../mgmt/tenants/RawSettingsClient.java | 23 + .../GetTenantSettingsRequestParameters.java | 21 +- .../types/ActionModuleDependencyRequest.java | 2 - .../mgmt/types/ActionModuleSecretRequest.java | 2 - .../types/ActionTriggerCompatibleTrigger.java | 1 - .../mgmt/types/AculClientFilterById.java | 1 - .../mgmt/types/AculDomainFilterById.java | 1 - .../types/AculOrganizationFilterById.java | 1 - ...ProtectionCaptchaAuthChallengeRequest.java | 1 - .../AttackProtectionUpdateCaptchaArkose.java | 2 - ...rotectionUpdateCaptchaFriendlyCaptcha.java | 2 - ...AttackProtectionUpdateCaptchaHcaptcha.java | 2 - ...ctionUpdateCaptchaRecaptchaEnterprise.java | 3 - ...ackProtectionUpdateCaptchaRecaptchaV2.java | 2 - .../mgmt/types/BrandingThemeBorders.java | 7 - .../mgmt/types/BrandingThemeColors.java | 16 - .../mgmt/types/BrandingThemeFontBodyText.java | 2 - .../types/BrandingThemeFontButtonsText.java | 2 - .../types/BrandingThemeFontInputLabels.java | 2 - .../mgmt/types/BrandingThemeFontLinks.java | 2 - .../mgmt/types/BrandingThemeFontSubtitle.java | 2 - .../mgmt/types/BrandingThemeFontTitle.java | 2 - .../client/mgmt/types/BrandingThemeFonts.java | 2 - .../types/BrandingThemePageBackground.java | 2 - .../mgmt/types/BrandingThemeWidget.java | 2 - .../types/ChangePasswordTicketIdentity.java | 1 - .../ChangePasswordTicketResponseContent.java | 1 - .../CimdMappedPrivateKeyJwtCredential.java | 3 - .../mgmt/types/CimdValidationResult.java | 1 - .../client/mgmt/types/ClientAddonLayer.java | 3 - .../client/mgmt/types/ClientAddonMscrm.java | 1 - .../client/mgmt/types/ClientAddonRms.java | 1 - .../client/mgmt/types/ClientAddonSlack.java | 1 - .../mgmt/types/ClientDefaultOrganization.java | 1 - .../mgmt/types/ClientRefreshTokenPolicy.java | 1 - ...onTransferDelegationDeviceBindingEnum.java | 11 - .../client/mgmt/types/ConnectedAccount.java | 5 - .../mgmt/types/ConnectionEnabledClient.java | 1 - ...ctionFederatedConnectionsAccessTokens.java | 113 -- .../mgmt/types/ConnectionForOrganization.java | 1 - .../ConnectionGatewayAuthentication.java | 3 - .../ConnectionGatewayAuthenticationSms.java | 1 - .../client/mgmt/types/ConnectionKey.java | 4 - .../mgmt/types/ConnectionOptionsAzureAd.java | 81 -- .../types/ConnectionOptionsCommonOidc.java | 82 -- .../mgmt/types/ConnectionOptionsEmail.java | 1 - .../types/ConnectionOptionsGoogleApps.java | 81 -- .../mgmt/types/ConnectionOptionsOidc.java | 82 -- .../mgmt/types/ConnectionOptionsOkta.java | 82 -- .../types/ConnectionPropertiesOptions.java | 63 - .../types/CreateActionRequestContent.java | 1 - .../CreateBrandingThemeResponseContent.java | 2 - .../CreateClientGrantRequestContent.java | 1 - .../types/CreateClientRequestContent.java | 1 - .../types/CreateConnectionRequestContent.java | 1 - .../CreateCustomDomainRequestContent.java | 1 - .../CreateCustomDomainResponseContent.java | 3 - ...eDirectoryProvisioningResponseContent.java | 6 - ...rectorySynchronizationResponseContent.java | 3 - ...ptionKeyPublicWrappingResponseContent.java | 1 - .../CreateEncryptionKeyResponseContent.java | 3 - ...teEventStreamTestEventResponseContent.java | 2 - .../mgmt/types/CreateExportUsersFields.java | 1 - .../CreateExportUsersResponseContent.java | 3 - ...wsVaultConnectionActivecampaignApiKey.java | 1 - ...ConnectionActivecampaignUninitialized.java | 1 - ...ateFlowsVaultConnectionAirtableApiKey.java | 1 - ...sVaultConnectionAirtableUninitialized.java | 1 - ...eateFlowsVaultConnectionAuth0OauthApp.java | 1 - ...lowsVaultConnectionAuth0Uninitialized.java | 1 - ...CreateFlowsVaultConnectionBigqueryJwt.java | 1 - ...sVaultConnectionBigqueryUninitialized.java | 1 - ...ateFlowsVaultConnectionClearbitApiKey.java | 1 - ...sVaultConnectionClearbitUninitialized.java | 1 - ...FlowsVaultConnectionDocusignOauthCode.java | 1 - ...sVaultConnectionDocusignUninitialized.java | 1 - ...sVaultConnectionGoogleSheetsOauthCode.java | 1 - ...ltConnectionGoogleSheetsUninitialized.java | 1 - .../CreateFlowsVaultConnectionHttpApiKey.java | 1 - ...eateFlowsVaultConnectionHttpBasicAuth.java | 1 - .../CreateFlowsVaultConnectionHttpBearer.java | 1 - ...tConnectionHttpOauthClientCredentials.java | 1 - ...FlowsVaultConnectionHttpUninitialized.java | 1 - ...eateFlowsVaultConnectionHubspotApiKey.java | 1 - ...eFlowsVaultConnectionHubspotOauthCode.java | 1 - ...wsVaultConnectionHubspotUninitialized.java | 1 - .../CreateFlowsVaultConnectionJwtJwt.java | 1 - ...eFlowsVaultConnectionJwtUninitialized.java | 1 - ...teFlowsVaultConnectionMailchimpApiKey.java | 1 - ...lowsVaultConnectionMailchimpOauthCode.java | 1 - ...VaultConnectionMailchimpUninitialized.java | 1 - ...eateFlowsVaultConnectionMailjetApiKey.java | 1 - ...wsVaultConnectionMailjetUninitialized.java | 1 - ...lowsVaultConnectionPipedriveOauthCode.java | 1 - ...ateFlowsVaultConnectionPipedriveToken.java | 1 - ...VaultConnectionPipedriveUninitialized.java | 1 - ...teFlowsVaultConnectionResponseContent.java | 6 - ...owsVaultConnectionSalesforceOauthCode.java | 1 - ...aultConnectionSalesforceUninitialized.java | 1 - ...ateFlowsVaultConnectionSendgridApiKey.java | 1 - ...sVaultConnectionSendgridUninitialized.java | 1 - ...ateFlowsVaultConnectionSlackOauthCode.java | 1 - ...lowsVaultConnectionSlackUninitialized.java | 1 - ...reateFlowsVaultConnectionSlackWebhook.java | 1 - ...eateFlowsVaultConnectionStripeKeyPair.java | 1 - ...teFlowsVaultConnectionStripeOauthCode.java | 1 - ...owsVaultConnectionStripeUninitialized.java | 1 - ...eateFlowsVaultConnectionTelegramToken.java | 1 - ...sVaultConnectionTelegramUninitialized.java | 1 - ...reateFlowsVaultConnectionTwilioApiKey.java | 1 - ...owsVaultConnectionTwilioUninitialized.java | 1 - ...eateFlowsVaultConnectionWhatsappToken.java | 1 - ...sVaultConnectionWhatsappUninitialized.java | 1 - ...owsVaultConnectionZapierUninitialized.java | 1 - ...eateFlowsVaultConnectionZapierWebhook.java | 1 - .../mgmt/types/CreateHookRequestContent.java | 3 - .../CreateImportUsersResponseContent.java | 5 - .../types/CreateNetworkAclRequestContent.java | 1 - ...anizationAllConnectionResponseContent.java | 1 - ...izationDiscoveryDomainResponseContent.java | 4 - .../CreateOrganizationRequestContent.java | 1 - .../CreatePhoneTemplateResponseContent.java | 1 - ...blicKeyDeviceCredentialRequestContent.java | 3 - ...licKeyDeviceCredentialResponseContent.java | 1 - .../CreateRateLimitPolicyRequestContent.java | 1 - .../CreateRateLimitPolicyResponseContent.java | 2 - .../CreateResourceServerRequestContent.java | 1 - .../mgmt/types/CreateRoleRequestContent.java | 1 - .../mgmt/types/CreateRuleRequestContent.java | 2 - ...reateScimConfigurationResponseContent.java | 7 - ...reateSelfServiceProfileRequestContent.java | 1 - ...ateTokenExchangeProfileRequestContent.java | 3 - .../mgmt/types/CreateUserRequestContent.java | 1 - ...reateVerificationEmailResponseContent.java | 3 - .../auth0/client/mgmt/types/CredentialId.java | 1 - .../types/CrossAppAccessRequestingApp.java | 1 - .../auth0/client/mgmt/types/CustomDomain.java | 3 - .../types/DeleteActionRequestParameters.java | 12 +- ...erBlocksByIdentifierRequestParameters.java | 5 +- ...eteUserGrantByUserIdRequestParameters.java | 5 +- ...DeleteUserIdentityResponseContentItem.java | 3 - .../mgmt/types/DirectoryProvisioning.java | 6 - .../DirectoryProvisioningMappingItem.java | 2 - .../mgmt/types/DomainVerificationMethod.java | 1 - .../EmailProviderCredentialsSchemaZero.java | 1 - .../client/mgmt/types/EncryptionKey.java | 3 - .../types/EventStreamActionConfiguration.java | 1 - ...ventStreamCloudEventConnectionCreated.java | 1 - ...CloudEventConnectionCreatedCloudEvent.java | 5 - ...eamCloudEventConnectionCreatedObject0.java | 2 - ...dEventConnectionCreatedObject0Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionCreatedObject0OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionCreatedObject1.java | 2 - ...dEventConnectionCreatedObject1Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionCreatedObject1OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionCreatedObject2.java | 2 - ...eamCloudEventConnectionCreatedObject3.java | 2 - ...dEventConnectionCreatedObject3Options.java | 1 - ...eamCloudEventConnectionCreatedObject4.java | 2 - ...eamCloudEventConnectionCreatedObject5.java | 2 - ...eamCloudEventConnectionCreatedObject6.java | 2 - ...dEventConnectionCreatedObject6Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...eamCloudEventConnectionCreatedObject7.java | 2 - ...dEventConnectionCreatedObject7Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...ventStreamCloudEventConnectionDeleted.java | 1 - ...CloudEventConnectionDeletedCloudEvent.java | 5 - ...eamCloudEventConnectionDeletedObject0.java | 2 - ...dEventConnectionDeletedObject0Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionDeletedObject0OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionDeletedObject1.java | 2 - ...dEventConnectionDeletedObject1Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionDeletedObject1OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionDeletedObject2.java | 2 - ...eamCloudEventConnectionDeletedObject3.java | 2 - ...dEventConnectionDeletedObject3Options.java | 1 - ...eamCloudEventConnectionDeletedObject4.java | 2 - ...eamCloudEventConnectionDeletedObject5.java | 2 - ...eamCloudEventConnectionDeletedObject6.java | 2 - ...dEventConnectionDeletedObject6Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...eamCloudEventConnectionDeletedObject7.java | 2 - ...dEventConnectionDeletedObject7Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...ventStreamCloudEventConnectionUpdated.java | 1 - ...CloudEventConnectionUpdatedCloudEvent.java | 5 - ...eamCloudEventConnectionUpdatedObject0.java | 2 - ...dEventConnectionUpdatedObject0Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionUpdatedObject0OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionUpdatedObject1.java | 2 - ...dEventConnectionUpdatedObject1Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...tionUpdatedObject1OptionsOidcMetadata.java | 3 - ...eamCloudEventConnectionUpdatedObject2.java | 2 - ...eamCloudEventConnectionUpdatedObject3.java | 2 - ...dEventConnectionUpdatedObject3Options.java | 1 - ...eamCloudEventConnectionUpdatedObject4.java | 2 - ...eamCloudEventConnectionUpdatedObject5.java | 2 - ...eamCloudEventConnectionUpdatedObject6.java | 2 - ...dEventConnectionUpdatedObject6Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - ...eamCloudEventConnectionUpdatedObject7.java | 2 - ...dEventConnectionUpdatedObject7Options.java | 1 - ...tionsFederatedConnectionsAccessTokens.java | 1 - .../EventStreamCloudEventContextClient.java | 2 - ...ventStreamCloudEventContextConnection.java | 3 - .../EventStreamCloudEventContextRequest.java | 4 - .../EventStreamCloudEventContextTenant.java | 1 - .../EventStreamCloudEventErrorDetail.java | 1 - .../EventStreamCloudEventGroupCreated.java | 1 - ...treamCloudEventGroupCreatedCloudEvent.java | 5 - ...ntStreamCloudEventGroupCreatedObject0.java | 4 - ...ntStreamCloudEventGroupCreatedObject1.java | 4 - ...ntStreamCloudEventGroupCreatedObject2.java | 3 - .../EventStreamCloudEventGroupDeleted.java | 1 - ...treamCloudEventGroupDeletedCloudEvent.java | 5 - ...ntStreamCloudEventGroupDeletedObject0.java | 5 - ...ntStreamCloudEventGroupDeletedObject1.java | 5 - ...ntStreamCloudEventGroupDeletedObject2.java | 4 - ...EventStreamCloudEventGroupMemberAdded.java | 1 - ...mCloudEventGroupMemberAddedCloudEvent.java | 5 - ...loudEventGroupMemberAddedObjectGroup0.java | 2 - ...loudEventGroupMemberAddedObjectGroup1.java | 2 - ...loudEventGroupMemberAddedObjectGroup2.java | 1 - ...oudEventGroupMemberAddedObjectMember0.java | 1 - ...oudEventGroupMemberAddedObjectMember1.java | 3 - ...entStreamCloudEventGroupMemberDeleted.java | 1 - ...loudEventGroupMemberDeletedCloudEvent.java | 5 - ...udEventGroupMemberDeletedObjectGroup0.java | 2 - ...udEventGroupMemberDeletedObjectGroup1.java | 2 - ...udEventGroupMemberDeletedObjectGroup2.java | 1 - ...dEventGroupMemberDeletedObjectMember0.java | 1 - ...dEventGroupMemberDeletedObjectMember1.java | 3 - ...ventStreamCloudEventGroupRoleAssigned.java | 1 - ...CloudEventGroupRoleAssignedCloudEvent.java | 5 - ...reamCloudEventGroupRoleAssignedObject.java | 1 - ...oudEventGroupRoleAssignedObjectGroup0.java | 2 - ...oudEventGroupRoleAssignedObjectGroup1.java | 2 - ...oudEventGroupRoleAssignedObjectGroup2.java | 1 - ...CloudEventGroupRoleAssignedObjectRole.java | 2 - ...EventStreamCloudEventGroupRoleDeleted.java | 1 - ...mCloudEventGroupRoleDeletedCloudEvent.java | 5 - ...treamCloudEventGroupRoleDeletedObject.java | 1 - ...loudEventGroupRoleDeletedObjectGroup0.java | 2 - ...loudEventGroupRoleDeletedObjectGroup1.java | 2 - ...loudEventGroupRoleDeletedObjectGroup2.java | 1 - ...mCloudEventGroupRoleDeletedObjectRole.java | 1 - .../EventStreamCloudEventGroupUpdated.java | 1 - ...treamCloudEventGroupUpdatedCloudEvent.java | 5 - ...ntStreamCloudEventGroupUpdatedObject0.java | 5 - ...ntStreamCloudEventGroupUpdatedObject1.java | 5 - ...ntStreamCloudEventGroupUpdatedObject2.java | 4 - ...ventStreamCloudEventOffsetOnlyMessage.java | 1 - ...entStreamCloudEventOrgConnectionAdded.java | 1 - ...loudEventOrgConnectionAddedCloudEvent.java | 5 - ...entOrgConnectionAddedObjectConnection.java | 1 - ...tOrgConnectionAddedObjectOrganization.java | 1 - ...tStreamCloudEventOrgConnectionRemoved.java | 1 - ...udEventOrgConnectionRemovedCloudEvent.java | 5 - ...tOrgConnectionRemovedObjectConnection.java | 1 - ...rgConnectionRemovedObjectOrganization.java | 1 - ...tStreamCloudEventOrgConnectionUpdated.java | 1 - ...udEventOrgConnectionUpdatedCloudEvent.java | 5 - ...tOrgConnectionUpdatedObjectConnection.java | 1 - ...rgConnectionUpdatedObjectOrganization.java | 1 - .../EventStreamCloudEventOrgCreated.java | 1 - ...tStreamCloudEventOrgCreatedCloudEvent.java | 5 - ...EventStreamCloudEventOrgCreatedObject.java | 1 - .../EventStreamCloudEventOrgDeleted.java | 1 - ...tStreamCloudEventOrgDeletedCloudEvent.java | 5 - ...EventStreamCloudEventOrgDeletedObject.java | 1 - ...tStreamCloudEventOrgGroupRoleAssigned.java | 1 - ...udEventOrgGroupRoleAssignedCloudEvent.java | 5 - ...mCloudEventOrgGroupRoleAssignedObject.java | 1 - ...EventOrgGroupRoleAssignedObjectGroup0.java | 2 - ...EventOrgGroupRoleAssignedObjectGroup1.java | 2 - ...EventOrgGroupRoleAssignedObjectGroup2.java | 1 - ...rgGroupRoleAssignedObjectOrganization.java | 1 - ...udEventOrgGroupRoleAssignedObjectRole.java | 2 - ...ntStreamCloudEventOrgGroupRoleDeleted.java | 1 - ...oudEventOrgGroupRoleDeletedCloudEvent.java | 5 - ...amCloudEventOrgGroupRoleDeletedObject.java | 1 - ...dEventOrgGroupRoleDeletedObjectGroup0.java | 2 - ...dEventOrgGroupRoleDeletedObjectGroup1.java | 2 - ...dEventOrgGroupRoleDeletedObjectGroup2.java | 1 - ...OrgGroupRoleDeletedObjectOrganization.java | 1 - ...oudEventOrgGroupRoleDeletedObjectRole.java | 1 - .../EventStreamCloudEventOrgMemberAdded.java | 1 - ...eamCloudEventOrgMemberAddedCloudEvent.java | 5 - ...EventOrgMemberAddedObjectOrganization.java | 1 - ...eamCloudEventOrgMemberAddedObjectUser.java | 1 - ...EventStreamCloudEventOrgMemberDeleted.java | 1 - ...mCloudEventOrgMemberDeletedCloudEvent.java | 5 - ...entOrgMemberDeletedObjectOrganization.java | 1 - ...mCloudEventOrgMemberDeletedObjectUser.java | 1 - ...StreamCloudEventOrgMemberRoleAssigned.java | 1 - ...dEventOrgMemberRoleAssignedCloudEvent.java | 5 - ...gMemberRoleAssignedObjectOrganization.java | 1 - ...dEventOrgMemberRoleAssignedObjectRole.java | 2 - ...dEventOrgMemberRoleAssignedObjectUser.java | 1 - ...tStreamCloudEventOrgMemberRoleDeleted.java | 1 - ...udEventOrgMemberRoleDeletedCloudEvent.java | 5 - ...rgMemberRoleDeletedObjectOrganization.java | 1 - ...udEventOrgMemberRoleDeletedObjectRole.java | 2 - ...udEventOrgMemberRoleDeletedObjectUser.java | 1 - .../EventStreamCloudEventOrgUpdated.java | 1 - ...tStreamCloudEventOrgUpdatedCloudEvent.java | 5 - ...EventStreamCloudEventOrgUpdatedObject.java | 1 - .../EventStreamCloudEventUserCreated.java | 1 - ...StreamCloudEventUserCreatedCloudEvent.java | 5 - ...ventStreamCloudEventUserCreatedObject.java | 3 - ...UserCreatedObjectIdentitiesItemCustom.java | 1 - ...erCreatedObjectIdentitiesItemDatabase.java | 1 - ...CreatedObjectIdentitiesItemEnterprise.java | 1 - ...eatedObjectIdentitiesItemPasswordless.java | 1 - ...UserCreatedObjectIdentitiesItemSocial.java | 1 - .../EventStreamCloudEventUserDeleted.java | 1 - ...StreamCloudEventUserDeletedCloudEvent.java | 5 - ...ventStreamCloudEventUserDeletedObject.java | 4 - ...UserDeletedObjectIdentitiesItemCustom.java | 1 - ...erDeletedObjectIdentitiesItemDatabase.java | 1 - ...DeletedObjectIdentitiesItemEnterprise.java | 1 - ...letedObjectIdentitiesItemPasswordless.java | 1 - ...UserDeletedObjectIdentitiesItemSocial.java | 1 - .../EventStreamCloudEventUserUpdated.java | 1 - ...StreamCloudEventUserUpdatedCloudEvent.java | 5 - ...ventStreamCloudEventUserUpdatedObject.java | 3 - ...UserUpdatedObjectIdentitiesItemCustom.java | 1 - ...erUpdatedObjectIdentitiesItemDatabase.java | 1 - ...UpdatedObjectIdentitiesItemEnterprise.java | 1 - ...datedObjectIdentitiesItemPasswordless.java | 1 - ...UserUpdatedObjectIdentitiesItemSocial.java | 1 - .../mgmt/types/EventStreamDelivery.java | 2 - .../types/EventStreamDeliveryAttempt.java | 1 - .../EventStreamEventBridgeConfiguration.java | 1 - .../types/EventStreamWebhookBasicAuth.java | 1 - .../EventStreamWebhookConfiguration.java | 1 - .../EventStreamWebhookCustomHeaderAuth.java | 1 - .../mgmt/types/ExpressConfiguration.java | 7 - .../types/ExpressConfigurationOrNull.java | 7 - .../types/FederatedConnectionTokenSet.java | 292 ---- .../auth0/client/mgmt/types/FlowAction.java | 112 +- .../mgmt/types/FlowExecutionSummary.java | 5 - .../types/FlowsVaultConnectionSummary.java | 6 - ...etBrandingDefaultThemeResponseContent.java | 2 - .../GetBrandingThemeResponseContent.java | 2 - .../types/GetClientRequestParameters.java | 21 +- .../types/GetConnectionRequestParameters.java | 21 +- .../types/GetCustomDomainResponseContent.java | 3 - .../types/GetDailyStatsRequestParameters.java | 21 +- ...DefaultCanonicalDomainResponseContent.java | 1 - ...GetDefaultCustomDomainResponseContent.java | 3 - ...tDirectoryProvisioningResponseContent.java | 6 - .../GetEncryptionKeyResponseContent.java | 3 - ...tStreamDeliveryHistoryResponseContent.java | 2 - .../GetFlowExecutionResponseContent.java | 5 - .../mgmt/types/GetFlowRequestParameters.java | 8 + ...etFlowsVaultConnectionResponseContent.java | 6 - .../mgmt/types/GetFormRequestParameters.java | 8 + .../mgmt/types/GetGroupResponseContent.java | 5 - .../GetGuardianEnrollmentResponseContent.java | 1 - ...anFactorPhoneTemplatesResponseContent.java | 2 - ...dianFactorSmsTemplatesResponseContent.java | 2 - .../mgmt/types/GetHookRequestParameters.java | 12 +- .../GetJobGenericErrorResponseContent.java | 3 - .../mgmt/types/GetJobResponseContent.java | 3 - ...anizationAllConnectionResponseContent.java | 1 - ...nDiscoveryDomainByNameResponseContent.java | 4 - ...izationDiscoveryDomainResponseContent.java | 4 - .../GetPhoneTemplateResponseContent.java | 1 - .../GetRateLimitPolicyResponseContent.java | 2 - .../GetRefreshTokensRequestParameters.java | 51 +- .../GetResourceServerRequestParameters.java | 12 +- ...mentsSettingsNewDeviceResponseContent.java | 1 - ...iskAssessmentsSettingsResponseContent.java | 1 - .../mgmt/types/GetRuleRequestParameters.java | 21 +- .../GetScimConfigurationResponseContent.java | 7 - .../types/GetSigningKeysResponseContent.java | 4 - ...erAuthenticationMethodResponseContent.java | 2 - .../mgmt/types/GetUserRequestParameters.java | 21 +- .../client/mgmt/types/GuardianFactor.java | 1 - .../types/IConnectionOptionsCommonOidc.java | 2 - .../com/auth0/client/mgmt/types/Identity.java | 1 - .../ImportEncryptionKeyResponseContent.java | 3 - .../mgmt/types/LinkedClientConfiguration.java | 1 - .../types/ListActionsRequestParameters.java | 57 +- .../ListClientGrantsRequestParameters.java | 66 +- .../types/ListClientsRequestParameters.java | 93 +- ...istConnectionProfileRequestParameters.java | 21 +- .../types/ListConnectionsQueryParameters.java | 53 +- .../ListCustomDomainsRequestParameters.java | 39 +- ...istDeviceCredentialsRequestParameters.java | 75 +- .../ListEventStreamsRequestParameters.java | 21 +- .../types/ListFlowsRequestParameters.java | 44 +- .../types/ListFormsRequestParameters.java | 35 +- .../types/ListGroupsRequestParameters.java | 75 +- .../types/ListHooksRequestParameters.java | 57 +- .../mgmt/types/ListLogsRequestParameters.java | 66 +- .../ListNetworkAclsRequestParameters.java | 30 +- .../ListOrganizationsRequestParameters.java | 30 +- ...istRateLimitPoliciesRequestParameters.java | 48 +- .../ListResourceServerRequestParameters.java | 44 +- .../types/ListRolesRequestParameters.java | 39 +- .../types/ListRulesRequestParameters.java | 57 +- ...tSelfServiceProfilesRequestParameters.java | 30 +- ...UserAttributeProfileRequestParameters.java | 21 +- ...erBlocksByIdentifierRequestParameters.java | 15 +- .../ListUserBlocksRequestParameters.java | 12 +- .../ListUserGrantsRequestParameters.java | 57 +- .../ListUsersByEmailRequestParameters.java | 24 +- .../types/ListUsersRequestParameters.java | 93 +- .../mgmt/types/LogStreamDatadogSink.java | 1 - .../mgmt/types/LogStreamEventBridgeSink.java | 1 - .../mgmt/types/LogStreamEventGridSink.java | 2 - .../client/mgmt/types/LogStreamHttpSink.java | 1 - .../mgmt/types/LogStreamMixpanelSink.java | 3 - .../types/LogStreamMixpanelSinkPatch.java | 2 - .../types/LogStreamSegmentSinkWriteKey.java | 1 - .../client/mgmt/types/LogStreamSinkPatch.java | 8 +- .../mgmt/types/LogStreamSplunkSink.java | 4 - .../client/mgmt/types/LogStreamSumoSink.java | 1 - .../client/mgmt/types/NetworkAclMatch.java | 26 + .../auth0/client/mgmt/types/OauthScope.java | 22 - .../types/OrganizationAllConnectionPost.java | 1 - .../types/OrganizationBrandingColors.java | 2 - .../types/OrganizationDiscoveryDomain.java | 4 - .../types/OrganizationInvitationInvitee.java | 1 - .../types/OrganizationInvitationInviter.java | 1 - .../OrganizationMemberEffectiveRole.java | 3 - ...licyConfigurationRequestContentAction.java | 3 - ...tPolicyConfigurationRequestContentOne.java | 2 - ...PolicyConfigurationRequestContentZero.java | 1 - .../mgmt/types/PermissionRequestPayload.java | 2 - .../client/mgmt/types/PhoneTemplate.java | 1 - ...ostConnectionsKeysResponseContentItem.java | 4 - .../PreviewCimdMetadataRequestContent.java | 1 - .../mgmt/types/PublicKeyCredential.java | 1 - .../client/mgmt/types/RateLimitPolicy.java | 2 - .../RateLimitPolicyConfigurationAction.java | 3 - .../RateLimitPolicyConfigurationOne.java | 2 - .../RateLimitPolicyConfigurationZero.java | 1 - .../RegisterCimdClientRequestContent.java | 1 - .../RegisterCimdClientResponseContent.java | 1 - .../ResetPhoneTemplateResponseContent.java | 1 - .../ResourceServerAuthorizationPolicy.java | 1 - .../ResourceServerProofOfPossession.java | 1 - .../mgmt/types/ResourceServerScope.java | 1 - .../ResourceServerTokenEncryptionKey.java | 1 - .../RevokedSigningKeysResponseContent.java | 2 - .../RotateConnectionsKeysResponseContent.java | 4 - .../RotateSigningKeysResponseContent.java | 2 - .../client/mgmt/types/ScimConfiguration.java | 7 - ...rviceProfileSsoTicketConnectionConfig.java | 1 - ...ceProfileSsoTicketEnabledOrganization.java | 1 - ...ProfileSsoTicketGoogleWorkspaceConfig.java | 1 - .../SelfServiceProfileUserAttribute.java | 3 - .../SetDefaultCustomDomainRequestContent.java | 1 - ...anFactorPhoneTemplatesResponseContent.java | 2 - .../SetGuardianFactorResponseContent.java | 1 - ...dianFactorSmsTemplatesResponseContent.java | 2 - .../types/SetNetworkAclRequestContent.java | 1 - .../types/SetRulesConfigRequestContent.java | 1 - .../types/SetRulesConfigResponseContent.java | 2 - .../auth0/client/mgmt/types/SigningKeys.java | 4 - .../SubscribeEventsRequestParameters.java | 26 +- .../mgmt/types/SynchronizedGroupPayload.java | 1 - .../TestCustomDomainResponseContent.java | 1 - .../TokenExchangeProfilesListRequest.java | 21 +- .../UpdateBrandingThemeResponseContent.java | 2 - .../mgmt/types/UpdateConnectionOptions.java | 63 - .../UpdateCustomDomainResponseContent.java | 3 - ...DefaultCanonicalDomainResponseContent.java | 1 - ...ateDefaultCustomDomainResponseContent.java | 3 - ...eDirectoryProvisioningResponseContent.java | 6 - ...edClientConnectionsRequestContentItem.java | 2 - ...teFlowsVaultConnectionResponseContent.java | 6 - .../UpdateFlowsVaultConnectionSetup.java | 18 +- ...anizationAllConnectionResponseContent.java | 1 - ...izationDiscoveryDomainResponseContent.java | 4 - .../UpdatePhoneTemplateResponseContent.java | 1 - .../UpdateRateLimitPolicyResponseContent.java | 2 - ...mentsSettingsNewDeviceResponseContent.java | 1 - ...iskAssessmentsSettingsResponseContent.java | 1 - ...pdateScimConfigurationResponseContent.java | 7 - ...dateSupplementalSignalsRequestContent.java | 1 - ...eUniversalLoginTemplateRequestContent.java | 8 +- .../UserAttributeProfileOidcMapping.java | 1 - ...fileUserAttributeAdditionalProperties.java | 4 - .../mgmt/types/UserAuthenticationMethod.java | 2 - .../client/mgmt/types/UserEffectiveRole.java | 3 - .../auth0/client/mgmt/types/UserIdentity.java | 3 - .../VerifyCustomDomainResponseContent.java | 3 - .../VerifyEmailTicketRequestContent.java | 1 - .../VerifyEmailTicketResponseContent.java | 1 - .../mgmt/types/X509CertificateCredential.java | 1 - ...ncFederatedConnectionsTokensetsClient.java | 50 - .../AsyncRawAuthenticationMethodsClient.java | 85 ++ .../users/AsyncRawAuthenticatorsClient.java | 13 + .../AsyncRawConnectedAccountsClient.java | 13 + .../AsyncRawEffectivePermissionsClient.java | 13 + .../users/AsyncRawEffectiveRolesClient.java | 13 + .../mgmt/users/AsyncRawEnrollmentsClient.java | 13 + ...awFederatedConnectionsTokensetsClient.java | 208 --- .../mgmt/users/AsyncRawGroupsClient.java | 13 + .../mgmt/users/AsyncRawIdentitiesClient.java | 25 + .../client/mgmt/users/AsyncRawLogsClient.java | 13 + .../mgmt/users/AsyncRawMultifactorClient.java | 25 + .../users/AsyncRawOrganizationsClient.java | 13 + .../mgmt/users/AsyncRawPermissionsClient.java | 37 + .../users/AsyncRawRefreshTokenClient.java | 25 + .../users/AsyncRawRiskAssessmentsClient.java | 13 + .../mgmt/users/AsyncRawRolesClient.java | 37 + .../mgmt/users/AsyncRawSessionsClient.java | 25 + .../FederatedConnectionsTokensetsClient.java | 49 - .../users/RawAuthenticationMethodsClient.java | 78 + .../mgmt/users/RawAuthenticatorsClient.java | 12 + .../users/RawConnectedAccountsClient.java | 12 + .../users/RawEffectivePermissionsClient.java | 12 + .../mgmt/users/RawEffectiveRolesClient.java | 12 + .../mgmt/users/RawEnrollmentsClient.java | 12 + ...awFederatedConnectionsTokensetsClient.java | 159 -- .../client/mgmt/users/RawGroupsClient.java | 12 + .../mgmt/users/RawIdentitiesClient.java | 23 + .../client/mgmt/users/RawLogsClient.java | 12 + .../mgmt/users/RawMultifactorClient.java | 23 + .../mgmt/users/RawOrganizationsClient.java | 12 + .../mgmt/users/RawPermissionsClient.java | 34 + .../mgmt/users/RawRefreshTokenClient.java | 23 + .../mgmt/users/RawRiskAssessmentsClient.java | 12 + .../client/mgmt/users/RawRolesClient.java | 34 + .../client/mgmt/users/RawSessionsClient.java | 23 + .../sources/AsyncRawRolesClient.java | 13 + .../sources/RawRolesClient.java | 12 + ...PermissionRoleSourceRequestParameters.java | 27 +- .../sources/AsyncRawGroupsClient.java | 13 + .../sources/RawGroupsClient.java | 12 + ...UserRoleSourceGroupsRequestParameters.java | 24 +- .../types/ClearAssessorsRequestContent.java | 1 - ...serConnectedAccountsRequestParameters.java | 21 +- .../types/GetUserGroupsRequestParameters.java | 39 +- .../ListRefreshTokensRequestParameters.java | 21 +- ...uthenticationMethodsRequestParameters.java | 30 +- ...EffectivePermissionsRequestParameters.java | 24 +- ...stUserEffectiveRolesRequestParameters.java | 21 +- .../types/ListUserLogsRequestParameters.java | 39 +- ...istUserOrganizationsRequestParameters.java | 30 +- .../ListUserPermissionsRequestParameters.java | 30 +- .../types/ListUserRolesRequestParameters.java | 30 +- .../ListUserSessionsRequestParameters.java | 21 +- .../verification/AsyncRawTemplatesClient.java | 61 + .../verification/RawTemplatesClient.java | 56 + ...eCredentialTemplatesRequestParameters.java | 21 +- .../mgmt/ActionsModulesVersionsWireTest.java | 5 +- .../client/mgmt/ActionsModulesWireTest.java | 9 +- .../mgmt/ActionsTriggersBindingsWireTest.java | 5 +- .../client/mgmt/ActionsVersionsWireTest.java | 14 +- .../auth0/client/mgmt/ActionsWireTest.java | 17 +- .../mgmt/BrandingPhoneProvidersWireTest.java | 3 +- .../mgmt/BrandingPhoneTemplatesWireTest.java | 3 +- .../ClientGrantsOrganizationsWireTest.java | 5 +- .../client/mgmt/ClientGrantsWireTest.java | 15 +- .../mgmt/ClientsConnectionsWireTest.java | 9 +- .../auth0/client/mgmt/ClientsWireTest.java | 25 +- .../mgmt/ConnectionProfilesWireTest.java | 5 +- .../mgmt/ConnectionsClientsWireTest.java | 5 +- ...nectionsDirectoryProvisioningWireTest.java | 26 +- .../client/mgmt/ConnectionsKeysWireTest.java | 18 +- .../ConnectionsScimConfigurationWireTest.java | 13 +- .../client/mgmt/ConnectionsWireTest.java | 15 +- .../client/mgmt/CustomDomainsWireTest.java | 9 +- .../mgmt/DeviceCredentialsWireTest.java | 17 +- .../client/mgmt/EmailsProviderWireTest.java | 5 +- .../mgmt/EventStreamsDeliveriesWireTest.java | 13 +- .../client/mgmt/EventStreamsWireTest.java | 5 +- .../com/auth0/client/mgmt/EventsWireTest.java | 5 +- .../client/mgmt/FlowsExecutionsWireTest.java | 5 +- .../mgmt/FlowsVaultConnectionsWireTest.java | 7 +- .../com/auth0/client/mgmt/FlowsWireTest.java | 9 +- .../com/auth0/client/mgmt/FormsWireTest.java | 7 +- .../client/mgmt/GroupsMembersWireTest.java | 9 +- .../client/mgmt/GroupsRolesWireTest.java | 5 +- .../com/auth0/client/mgmt/GroupsWireTest.java | 17 +- .../mgmt/GuardianFactorsSmsWireTest.java | 3 +- .../com/auth0/client/mgmt/HooksWireTest.java | 19 +- .../auth0/client/mgmt/JobsErrorsWireTest.java | 3 +- .../client/mgmt/KeysEncryptionWireTest.java | 7 +- .../com/auth0/client/mgmt/LogsWireTest.java | 15 +- .../client/mgmt/NetworkAclsWireTest.java | 7 +- .../OrganizationsClientGrantsWireTest.java | 11 +- .../OrganizationsConnectionsWireTest.java | 9 +- ...OrganizationsDiscoveryDomainsWireTest.java | 5 +- ...ganizationsEnabledConnectionsWireTest.java | 7 +- .../OrganizationsGroupsRolesWireTest.java | 5 +- .../mgmt/OrganizationsGroupsWireTest.java | 5 +- .../OrganizationsInvitationsWireTest.java | 17 +- ...rsEffectiveRolesSourcesGroupsWireTest.java | 5 +- ...izationsMembersEffectiveRolesWireTest.java | 5 +- .../OrganizationsMembersRolesWireTest.java | 7 +- .../mgmt/OrganizationsMembersWireTest.java | 9 +- .../OrganizationsRolesMembersWireTest.java | 9 +- .../client/mgmt/OrganizationsWireTest.java | 7 +- .../client/mgmt/PromptsRenderingWireTest.java | 17 +- .../mgmt/RateLimitPoliciesWireTest.java | 11 +- .../client/mgmt/RefreshTokensWireTest.java | 11 +- .../client/mgmt/ResourceServersWireTest.java | 11 +- .../client/mgmt/RolesGroupsWireTest.java | 6 +- .../client/mgmt/RolesPermissionsWireTest.java | 7 +- .../auth0/client/mgmt/RolesUsersWireTest.java | 5 +- .../com/auth0/client/mgmt/RolesWireTest.java | 9 +- .../com/auth0/client/mgmt/RulesWireTest.java | 17 +- .../mgmt/SelfServiceProfilesWireTest.java | 7 +- .../com/auth0/client/mgmt/StatsWireTest.java | 5 +- .../client/mgmt/TenantsSettingsWireTest.java | 5 +- .../mgmt/TokenExchangeProfilesWireTest.java | 5 +- .../mgmt/UserAttributeProfilesWireTest.java | 5 +- .../auth0/client/mgmt/UserBlocksWireTest.java | 5 +- .../auth0/client/mgmt/UserGrantsWireTest.java | 13 +- .../UsersAuthenticationMethodsWireTest.java | 7 +- .../mgmt/UsersConnectedAccountsWireTest.java | 5 +- ...ectivePermissionsSourcesRolesWireTest.java | 5 +- .../UsersEffectivePermissionsWireTest.java | 5 +- ...rsEffectiveRolesSourcesGroupsWireTest.java | 5 +- .../mgmt/UsersEffectiveRolesWireTest.java | 5 +- ...FederatedConnectionsTokensetsWireTest.java | 134 -- .../client/mgmt/UsersGroupsWireTest.java | 9 +- .../auth0/client/mgmt/UsersLogsWireTest.java | 9 +- .../mgmt/UsersOrganizationsWireTest.java | 7 +- .../client/mgmt/UsersPermissionsWireTest.java | 7 +- .../mgmt/UsersRefreshTokenWireTest.java | 5 +- .../auth0/client/mgmt/UsersRolesWireTest.java | 7 +- .../client/mgmt/UsersSessionsWireTest.java | 5 +- .../com/auth0/client/mgmt/UsersWireTest.java | 29 +- ...dentialsVerificationTemplatesWireTest.java | 5 +- .../NetworkAclsWireTest_testGet_response.json | 6 + .../NetworkAclsWireTest_testSet_response.json | 6 + ...tworkAclsWireTest_testUpdate_response.json | 6 + 928 files changed, 13689 insertions(+), 4374 deletions(-) create mode 100644 CONTRIBUTING.md delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java delete mode 100644 src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java delete mode 100644 src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..24cf9fa0c --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,114 @@ +# Contributing + +Thanks for your interest in contributing to this SDK! This document provides guidelines for contributing to the project. + +## Getting Started + +### Prerequisites + +- Java 11+ +- Gradle + +### Installation + +Install the project dependencies: + +```bash +./gradlew build +``` + +### Building + +Build the project: + +```bash +./gradlew build +``` + +### Testing + +Run the test suite: + +```bash +./gradlew test +``` + +### Formatting + +Check and fix code style: + +```bash +./gradlew spotlessApply +``` + +## About Generated Code + +**Important**: Most files in this SDK are automatically generated by [Fern](https://buildwithfern.com) from the API definition. Direct modifications to generated files will be overwritten the next time the SDK is generated. + +### Generated Files + +The following directories contain generated code: +- `src/` - API client classes and types +- Most Java files in the project + +### How to Customize + +If you need to customize the SDK, you have two options: + +#### Option 1: Use `.fernignore` + +For custom code that should persist across SDK regenerations: + +1. Create a `.fernignore` file in the project root +2. Add file patterns for files you want to preserve (similar to `.gitignore` syntax) +3. Add your custom code to those files + +Files listed in `.fernignore` will not be overwritten when the SDK is regenerated. + +For more information, see the [Fern documentation on custom code](https://buildwithfern.com/learn/sdks/overview/custom-code). + +#### Option 2: Contribute to the Generator + +If you want to change how code is generated for all users of this SDK: + +1. The Java SDK generator lives in the [Fern repository](https://github.com/fern-api/fern) +2. Generator code is located at `generators/java-v2/` +3. Follow the [Fern contributing guidelines](https://github.com/fern-api/fern/blob/main/CONTRIBUTING.md) +4. Submit a pull request with your changes to the generator + +This approach is best for: +- Bug fixes in generated code +- New features that would benefit all users +- Improvements to code generation patterns + +## Making Changes + +### Workflow + +1. Create a new branch for your changes +2. Make your modifications +3. Run tests to ensure nothing breaks: `./gradlew test` +4. Run formatting: `./gradlew spotlessApply` +5. Build the project: `./gradlew build` +6. Commit your changes with a clear commit message +7. Push your branch and create a pull request + +### Commit Messages + +Write clear, descriptive commit messages that explain what changed and why. + +### Code Style + +This project uses automated code formatting. Run `./gradlew spotlessApply` before committing to ensure your code meets the project's style guidelines. + +## Questions or Issues? + +If you have questions or run into issues: + +1. Check the [Fern documentation](https://buildwithfern.com) +2. Search existing [GitHub issues](https://github.com/fern-api/fern/issues) +3. Open a new issue if your question hasn't been addressed + +## License + +By contributing to this project, you agree that your contributions will be licensed under the same license as the project. diff --git a/reference.md b/reference.md index 3767b8311..0576977ea 100644 --- a/reference.md +++ b/reference.md @@ -30,24 +30,12 @@ Retrieve all actions. client.actions().list( ListActionsRequestParameters .builder() - .triggerId( - OptionalNullable.of(ActionTriggerTypeEnum.POST_LOGIN) - ) - .actionName( - OptionalNullable.of("actionName") - ) - .deployed( - OptionalNullable.of(true) - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .installed( - OptionalNullable.of(true) - ) + .triggerId(ActionTriggerTypeEnum.POST_LOGIN) + .actionName("actionName") + .deployed(true) + .page(1) + .perPage(1) + .installed(true) .build() ); ``` @@ -324,9 +312,7 @@ client.actions().delete( "id", DeleteActionRequestParameters .builder() - .force( - OptionalNullable.of(true) - ) + .force(true) .build() ); ``` @@ -757,27 +743,13 @@ Retrieve a list of [client grants](https://auth0.com/docs/get-started/applicatio client.clientGrants().list( ListClientGrantsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .audience( - OptionalNullable.of("audience") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .allowAnyOrganization( - OptionalNullable.of(true) - ) - .subjectType( - OptionalNullable.of(ClientGrantSubjectTypeEnum.CLIENT) - ) - .defaultFor( - OptionalNullable.of(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) - ) + .from("from") + .take(1) + .audience("audience") + .clientId("client_id") + .allowAnyOrganization(true) + .subjectType(ClientGrantSubjectTypeEnum.CLIENT) + .defaultFor(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) .build() ); ``` @@ -1240,36 +1212,16 @@ For more information, read [Applications in Auth0](https://www.auth0.com/docs/ge client.clients().list( ListClientsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .isGlobal( - OptionalNullable.of(true) - ) - .isFirstParty( - OptionalNullable.of(true) - ) - .appType( - OptionalNullable.of("app_type") - ) - .externalClientId( - OptionalNullable.of("external_client_id") - ) - .q( - OptionalNullable.of("q") - ) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .isGlobal(true) + .isFirstParty(true) + .appType("app_type") + .externalClientId("external_client_id") + .q("q") .build() ); ``` @@ -2064,12 +2016,8 @@ client.clients().get( "id", GetClientRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -2768,12 +2716,8 @@ Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagina client.connectionProfiles().list( ListConnectionProfileRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -3264,21 +3208,11 @@ To search by checkpoint, use the following parameters: client.connections().list( ListConnectionsQueryParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .name( - OptionalNullable.of("name") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .name("name") + .fields("fields") + .includeFields(true) .strategy( Arrays.asList(ConnectionStrategyEnum.AD) ) @@ -3531,12 +3465,8 @@ client.connections().get( "id", GetConnectionRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -3863,18 +3793,10 @@ Retrieve details on [custom domains](https://auth0.com/docs/custom-domains). client.customDomains().list( ListCustomDomainsRequestParameters .builder() - .q( - OptionalNullable.of("q") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .sort( - OptionalNullable.of("sort") - ) + .q("q") + .fields("fields") + .includeFields(true) + .sort("sort") .build() ); ``` @@ -4521,30 +4443,14 @@ Retrieve device credential information (`public_key`, `refresh_token`, or `rotat client.deviceCredentials().list( ListDeviceCredentialsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .userId( - OptionalNullable.of("user_id") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .type( - OptionalNullable.of(DeviceCredentialTypeEnum.PUBLIC_KEY) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .userId("user_id") + .clientId("client_id") + .type(DeviceCredentialTypeEnum.PUBLIC_KEY) .build() ); ``` @@ -5237,12 +5143,8 @@ client.emailTemplates().update( client.eventStreams().list( ListEventStreamsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -5596,12 +5498,8 @@ Subscribe to events via Server-Sent Events (SSE) client.events().subscribe( SubscribeEventsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .fromTimestamp( - OptionalNullable.of("from_timestamp") - ) + .from("from") + .fromTimestamp("from_timestamp") .eventType( Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED) ) @@ -5666,18 +5564,10 @@ client.events().subscribe( client.flows().list( ListFlowsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .synchronous( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .synchronous(true) .hydrate( Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT) ) @@ -5968,15 +5858,9 @@ client.flows().update( client.forms().list( ListFormsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .hydrate( Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT) ) @@ -6369,24 +6253,12 @@ Retrieve the [grants](https://auth0.com/docs/api-auth/which-oauth-flow-to-use) a client.userGrants().list( ListUserGrantsRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .userId( - OptionalNullable.of("user_id") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .audience( - OptionalNullable.of("audience") - ) + .perPage(1) + .page(1) + .includeTotals(true) + .userId("user_id") + .clientId("client_id") + .audience("audience") .build() ); ``` @@ -6599,30 +6471,14 @@ List all groups in your tenant. client.groups().list( ListGroupsRequestParameters .builder() - .connectionId( - OptionalNullable.of("connection_id") - ) - .name( - OptionalNullable.of("name") - ) - .externalId( - OptionalNullable.of("external_id") - ) - .search( - OptionalNullable.of("search") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .connectionId("connection_id") + .name("name") + .externalId("external_id") + .search("search") + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -6846,24 +6702,12 @@ Retrieve all [hooks](https://auth0.com/docs/hooks). Accepts a list of fields to client.hooks().list( ListHooksRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .enabled( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .triggerId( - OptionalNullable.of(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) .build() ); ``` @@ -7056,9 +6900,7 @@ client.hooks().get( "id", GetHookRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) + .fields("fields") .build() ); ``` @@ -8163,27 +8005,13 @@ Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-event client.logs().list( ListLogsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .sort( - OptionalNullable.of("sort") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .search( - OptionalNullable.of("search") - ) + .page(1) + .perPage(1) + .sort("sort") + .fields("fields") + .includeFields(true) + .includeTotals(true) + .search("search") .build() ); ``` @@ -8349,15 +8177,9 @@ Get all access control list entries for your client. client.networkAcls().list( ListNetworkAclsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -8847,15 +8669,9 @@ To search by checkpoint, use the following parameters: client.organizations().list( ListOrganizationsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .sort( - OptionalNullable.of("sort") - ) + .from("from") + .take(1) + .sort("sort") .build() ); ``` @@ -9409,21 +9225,11 @@ client.prompts().updateSettings( client.rateLimitPolicies().list( ListRateLimitPoliciesRequestParameters .builder() - .resource( - OptionalNullable.of(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) - ) - .consumer( - OptionalNullable.of(RateLimitPolicyConsumerEnum.CLIENT) - ) - .consumerSelector( - OptionalNullable.of("consumer_selector") - ) - .take( - OptionalNullable.of(1) - ) - .from( - OptionalNullable.of("from") - ) + .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) + .consumer(RateLimitPolicyConsumerEnum.CLIENT) + .consumerSelector("consumer_selector") + .take(1) + .from("from") .build() ); ``` @@ -9736,21 +9542,11 @@ client.refreshTokens().list( GetRefreshTokensRequestParameters .builder() .userId("user_id") - .clientId( - OptionalNullable.of("client_id") - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .clientId("client_id") + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -10107,18 +9903,10 @@ Retrieve details of all APIs associated with your tenant. client.resourceServers().list( ListResourceServerRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .includeFields( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .includeFields(true) .identifiers( Arrays.asList("identifiers") ) @@ -10408,9 +10196,7 @@ client.resourceServers().get( "id", GetResourceServerRequestParameters .builder() - .includeFields( - OptionalNullable.of(true) - ) + .includeFields(true) .build() ); ``` @@ -10729,18 +10515,10 @@ Retrieve detailed list of user roles created in your tenant. client.roles().list( ListRolesRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .nameFilter( - OptionalNullable.of("name_filter") - ) + .perPage(1) + .page(1) + .includeTotals(true) + .nameFilter("name_filter") .build() ); ``` @@ -11076,24 +10854,12 @@ Retrieve a filtered list of [rules](https://auth0.com/docs/rules). Accepts a lis client.rules().list( ListRulesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .enabled( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -11279,12 +11045,8 @@ client.rules().get( "id", GetRuleRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -11669,15 +11431,9 @@ Retrieves self-service profiles. client.selfServiceProfiles().list( ListSelfServiceProfilesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -12336,12 +12092,8 @@ Retrieve the number of logins, signups and breached-password detections (subscri client.stats().getDaily( GetDailyStatsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .to( - OptionalNullable.of("to") - ) + .from("from") + .to("to") .build() ); ``` @@ -12757,12 +12509,8 @@ This endpoint supports Checkpoint pagination. To search by checkpoint, use the f client.tokenExchangeProfiles().list( TokenExchangeProfilesListRequest .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -13107,12 +12855,8 @@ Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pa client.userAttributeProfiles().list( ListUserAttributeProfileRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -13551,9 +13295,7 @@ client.userBlocks().listByIdentifier( ListUserBlocksByIdentifierRequestParameters .builder() .identifier("identifier") - .considerBruteForceEnablement( - OptionalNullable.of(true) - ) + .considerBruteForceEnablement(true) .build() ); ``` @@ -13687,9 +13429,7 @@ client.userBlocks().list( "id", ListUserBlocksRequestParameters .builder() - .considerBruteForceEnablement( - OptionalNullable.of(true) - ) + .considerBruteForceEnablement(true) .build() ); ``` @@ -13835,36 +13575,16 @@ Auth0 limits the number of users you can return. If you exceed this threshold, p client.users().list( ListUsersRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .sort( - OptionalNullable.of("sort") - ) - .connection( - OptionalNullable.of("connection") - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .q( - OptionalNullable.of("q") - ) - .searchEngine( - OptionalNullable.of(SearchEngineVersionsEnum.V1) - ) - .primaryOrder( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .sort("sort") + .connection("connection") + .fields("fields") + .includeFields(true) + .q("q") + .searchEngine(SearchEngineVersionsEnum.V1) + .primaryOrder(true) .build() ); ``` @@ -14189,12 +13909,8 @@ client.users().listUsersByEmail( ListUsersByEmailRequestParameters .builder() .email("email") - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -14270,12 +13986,8 @@ client.users().get( "id", GetUserRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -14828,12 +14540,8 @@ client.actions().versions().list( "actionId", ListActionVersionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -14970,7 +14678,11 @@ Performs the equivalent of a roll-back of an action to an earlier, specified ver client.actions().versions().deploy( "actionId", "id", - OptionalNullable.absent() + OptionalNullable.of( + DeployActionVersionRequestContent + .builder() + .build() + ) ); ``` @@ -15100,12 +14812,8 @@ Retrieve a paginated list of all Actions Modules with optional filtering and tot client.actions().modules().list( GetActionModulesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -15464,12 +15172,8 @@ client.actions().modules().listActions( "id", GetActionModuleActionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -15654,12 +15358,8 @@ client.actions().modules().versions().list( "id", GetActionModuleVersionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -15852,12 +15552,8 @@ client.actions().triggers().bindings().list( ActionTriggerTypeEnum.POST_LOGIN, ListActionTriggerBindingsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) + .page(1) + .perPage(1) .build() ); ``` @@ -17583,9 +17279,7 @@ Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-mess client.branding().phone().providers().list( ListBrandingPhoneProvidersRequestParameters .builder() - .disabled( - OptionalNullable.of(true) - ) + .disabled(true) .build() ); ``` @@ -17985,9 +17679,7 @@ client.branding().phone().providers().test( client.branding().phone().templates().list( ListPhoneTemplatesRequestParameters .builder() - .disabled( - OptionalNullable.of(true) - ) + .disabled(true) .build() ); ``` @@ -18350,12 +18042,8 @@ client.clientGrants().organizations().list( "id", ListClientGrantOrganizationsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -18874,18 +18562,10 @@ client.clients().connections().get( "id", ConnectionsGetRequest .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .strategy( Arrays.asList(ConnectionStrategyEnum.AD) ) @@ -18988,12 +18668,8 @@ Retrieve a list of directory provisioning configurations of a tenant. client.connections().directoryProvisioning().list( ListDirectoryProvisioningsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -19113,7 +18789,11 @@ Create a directory provisioning configuration for a connection. ```java client.connections().directoryProvisioning().create( "id", - OptionalNullable.absent() + OptionalNullable.of( + CreateDirectoryProvisioningRequestContent + .builder() + .build() + ) ); ``` @@ -19232,7 +18912,11 @@ Update the directory provisioning configuration of a connection. ```java client.connections().directoryProvisioning().update( "id", - OptionalNullable.absent() + OptionalNullable.of( + UpdateDirectoryProvisioningRequestContent + .builder() + .build() + ) ); ``` @@ -19353,12 +19037,8 @@ client.connections().directoryProvisioning().listSynchronizedGroups( "id", ListSynchronizedGroupsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -19509,12 +19189,8 @@ Retrieve a list of SCIM configurations of a tenant. client.connections().scimConfiguration().list( ListScimConfigurationsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -19634,7 +19310,11 @@ Create a scim configuration for a connection. ```java client.connections().scimConfiguration().create( "id", - OptionalNullable.absent() + OptionalNullable.of( + CreateScimConfigurationRequestContent + .builder() + .build() + ) ); ``` @@ -19895,12 +19575,8 @@ client.connections().clients().get( "id", GetConnectionEnabledClientsRequestParameters .builder() - .take( - OptionalNullable.of(1) - ) - .from( - OptionalNullable.of("from") - ) + .take(1) + .from("from") .build() ); ``` @@ -20086,7 +19762,11 @@ Provision initial connection keys for Okta or OIDC connection strategies. This e ```java client.connections().keys().create( "id", - OptionalNullable.absent() + OptionalNullable.of( + PostConnectionKeysRequestContent + .builder() + .build() + ) ); ``` @@ -20151,7 +19831,11 @@ Rotates the connection keys for the Okta or OIDC connection strategies. ```java client.connections().keys().rotate( "id", - OptionalNullable.absent() + OptionalNullable.of( + RotateConnectionKeysRequestContent + .builder() + .build() + ) ); ``` @@ -20534,12 +20218,8 @@ Retrieve details of the [email provider configuration](https://auth0.com/docs/cu client.emails().provider().get( GetEmailProviderRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -20871,24 +20551,12 @@ client.eventStreams().deliveries().list( "id", ListEventStreamDeliveriesRequestParameters .builder() - .statuses( - OptionalNullable.of("statuses") - ) - .eventTypes( - OptionalNullable.of("event_types") - ) - .dateFrom( - OptionalNullable.of("date_from") - ) - .dateTo( - OptionalNullable.of("date_to") - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .statuses("statuses") + .eventTypes("event_types") + .dateFrom("date_from") + .dateTo("date_to") + .from("from") + .take(1) .build() ); ``` @@ -21157,12 +20825,8 @@ client.flows().executions().list( "flow_id", ListFlowExecutionsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -21337,15 +21001,9 @@ client.flows().executions().delete("flow_id", "execution_id"); client.flows().vault().connections().list( ListFlowsVaultConnectionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -21621,18 +21279,10 @@ client.groups().members().get( "id", GetGroupMembersRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -21725,12 +21375,8 @@ client.groups().roles().list( "id", ListGroupRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -23719,7 +23365,7 @@ client.guardian().factors().sms().setProvider( -
client.guardian.factors.sms.getTemplates() -> GetGuardianFactorSmsTemplatesResponseContent +
client.guardian.factors.sms.getTemplates() -> Optional&lt;GetGuardianFactorSmsTemplatesResponseContent&gt;
@@ -24370,6 +24016,7 @@ Import users from a ## Jobs Errors -
client.jobs.errors.get(id) -> ErrorsGetResponse +
client.jobs.errors.get(id) -> Optional&lt;ErrorsGetResponse&gt;
@@ -24703,15 +24350,9 @@ Retrieve details of all the encryption keys associated with your tenant. client.keys().encryption().list( ListEncryptionKeysRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -25289,21 +24930,11 @@ client.organizations().clientGrants().list( "id", ListOrganizationClientGrantsRequestParameters .builder() - .audience( - OptionalNullable.of("audience") - ) - .clientId( - OptionalNullable.of("client_id") - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .audience("audience") + .clientId("client_id") + .page(1) + .perPage(1) + .includeTotals(true) .grantIds( Arrays.asList("grant_ids") ) @@ -25503,18 +25134,10 @@ client.organizations().connections().list( "id", ListOrganizationAllConnectionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .isEnabled( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) + .isEnabled(true) .build() ); ``` @@ -25908,12 +25531,8 @@ client.organizations().discoveryDomains().list( "id", ListOrganizationDiscoveryDomainsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -26346,15 +25965,9 @@ client.organizations().enabledConnections().list( "id", ListOrganizationConnectionsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -26751,24 +26364,12 @@ client.organizations().invitations().list( "id", ListOrganizationInvitationsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .sort( - OptionalNullable.of("sort") - ) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .sort("sort") .build() ); ``` @@ -27007,12 +26608,8 @@ client.organizations().invitations().get( "invitation_id", GetOrganizationInvitationRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -27160,18 +26757,10 @@ client.organizations().members().list( "id", ListOrganizationMembersRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -27392,12 +26981,8 @@ client.organizations().groups().list( "organization_id", ListOrganizationGroupsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -27475,12 +27060,8 @@ client.organizations().groups().roles().list( "group_id", ListOrganizationGroupRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -27724,12 +27305,8 @@ client.organizations().members().effectiveRoles().list( "user_id", ListOrganizationMemberEffectiveRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -27817,15 +27394,9 @@ client.organizations().members().roles().list( "user_id", ListOrganizationMemberRolesRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -28082,12 +27653,8 @@ client.organizations().members().effectiveRoles().sources().groups().list( ListOrganizationMemberRoleSourceGroupsRequestParameters .builder() .roleId("role_id") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -28181,18 +27748,10 @@ client.organizations().roles().members().list( "role_id", ListOrganizationRoleMembersRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -28292,30 +27851,14 @@ Get render setting configurations for all screens. client.prompts().rendering().list( ListAculsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) - .prompt( - OptionalNullable.of("prompt") - ) - .screen( - OptionalNullable.of("screen") - ) - .renderingMode( - OptionalNullable.of(AculRenderingModeEnum.ADVANCED) - ) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .prompt("prompt") + .screen("screen") + .renderingMode(AculRenderingModeEnum.ADVANCED) .build() ); ``` @@ -29136,12 +28679,8 @@ client.roles().groups().get( "id", ListRoleGroupsParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -29358,15 +28897,9 @@ client.roles().permissions().list( "id", ListRolePermissionsRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .perPage(1) + .page(1) + .includeTotals(true) .build() ); ``` @@ -29619,12 +29152,8 @@ client.roles().users().list( "id", ListRoleUsersRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -30123,12 +29652,8 @@ Retrieve tenant settings. A list of fields to include or exclude may also be spe client.tenants().settings().get( GetTenantSettingsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) + .fields("fields") + .includeFields(true) .build() ); ``` @@ -30595,15 +30120,9 @@ client.users().authenticationMethods().list( "id", ListUserAuthenticationMethodsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -31251,12 +30770,8 @@ client.users().connectedAccounts().list( "id", GetUserConnectedAccountsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -31334,12 +30849,8 @@ client.users().effectivePermissions().list( ListUserEffectivePermissionsRequestParameters .builder() .resourceServerIdentifier("resource_server_identifier") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -31424,12 +30935,8 @@ client.users().effectiveRoles().list( "id", ListUserEffectiveRolesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -31525,109 +31032,6 @@ client.users().enrollments().get("id");
-
-
-
- -## Users FederatedConnectionsTokensets -
client.users.federatedConnectionsTokensets.list(id) -> List&lt;FederatedConnectionTokenSet&gt; -
-
- -#### 📝 Description - -
-
- -
-
- -List active federated connections tokensets for a provided user -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -client.users().federatedConnectionsTokensets().list("id"); -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — User identifier - -
-
-
-
- - -
-
-
- -
client.users.federatedConnectionsTokensets.delete(id, tokensetId) -
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -client.users().federatedConnectionsTokensets().delete("id", "tokenset_id"); -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — Id of the user that owns the tokenset - -
-
- -
-
- -**tokensetId:** `String` — The tokenset id - -
-
-
-
- -
@@ -31664,18 +31068,10 @@ client.users().groups().get( "id", GetUserGroupsRequestParameters .builder() - .fields( - OptionalNullable.of("fields") - ) - .includeFields( - OptionalNullable.of(true) - ) - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build() ); ``` @@ -31966,18 +31362,10 @@ client.users().logs().list( "id", ListUserLogsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .sort( - OptionalNullable.of("sort") - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .sort("sort") + .includeTotals(true) .build() ); ``` @@ -32187,15 +31575,9 @@ client.users().organizations().list( "id", ListUserOrganizationsRequestParameters .builder() - .page( - OptionalNullable.of(1) - ) - .perPage( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .page(1) + .perPage(1) + .includeTotals(true) .build() ); ``` @@ -32280,15 +31662,9 @@ client.users().permissions().list( "id", ListUserPermissionsRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .perPage(1) + .page(1) + .includeTotals(true) .build() ); ``` @@ -32607,15 +31983,9 @@ client.users().roles().list( "id", ListUserRolesRequestParameters .builder() - .perPage( - OptionalNullable.of(1) - ) - .page( - OptionalNullable.of(1) - ) - .includeTotals( - OptionalNullable.of(true) - ) + .perPage(1) + .page(1) + .includeTotals(true) .build() ); ``` @@ -32844,12 +32214,8 @@ client.users().refreshToken().list( "user_id", ListRefreshTokensRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -32980,12 +32346,8 @@ client.users().sessions().list( "user_id", ListUserSessionsRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -33118,12 +32480,8 @@ client.users().effectivePermissions().sources().roles().list( .builder() .resourceServerIdentifier("resource_server_identifier") .permissionName("permission_name") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -33217,12 +32575,8 @@ client.users().effectiveRoles().sources().groups().list( ListUserRoleSourceGroupsRequestParameters .builder() .roleId("role_id") - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` @@ -33306,12 +32660,8 @@ List verifiable credential templates. client.verifiableCredentials().verification().templates().list( ListVerifiableCredentialTemplatesRequestParameters .builder() - .from( - OptionalNullable.of("from") - ) - .take( - OptionalNullable.of(1) - ) + .from("from") + .take(1) .build() ); ``` diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java index a327a57ef..61ef6cf5c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -118,6 +119,15 @@ public CompletableFuture>> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -230,6 +243,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -273,6 +295,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -317,6 +342,15 @@ public CompletableFuture> ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -364,6 +398,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -426,6 +463,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -471,6 +517,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -539,6 +588,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -587,6 +645,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -632,6 +693,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -675,6 +745,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -729,6 +802,15 @@ public CompletableFuture> t if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -772,6 +854,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java index 8ad46d304..cae9bf475 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -67,6 +68,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -105,6 +115,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -172,6 +185,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -215,6 +237,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java index 048e3712e..ce2be7a57 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -125,6 +126,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -181,6 +191,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -233,6 +246,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -287,6 +309,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -333,6 +358,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -376,6 +410,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -419,6 +456,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -459,6 +505,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -527,6 +576,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -576,6 +634,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java index fe59433fc..5690f51c8 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -235,6 +236,15 @@ public CompletableFuture>> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -295,6 +305,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -373,6 +386,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -426,6 +448,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -482,6 +507,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -531,6 +565,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -603,6 +640,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -652,6 +698,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -816,6 +865,15 @@ public CompletableFuture> ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -863,6 +921,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -906,6 +967,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -946,6 +1016,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1050,6 +1123,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1098,6 +1180,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1147,6 +1232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1196,6 +1290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java index 3d29af886..89882f8b5 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -104,6 +105,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -167,6 +177,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -268,6 +290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -311,6 +336,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -350,6 +384,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -395,6 +432,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -439,6 +485,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -483,6 +532,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -527,6 +585,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -570,6 +631,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -605,6 +675,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -673,6 +746,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -722,6 +804,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java index 0497fcb85..2bd6e3165 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -171,6 +172,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -233,6 +243,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -287,6 +300,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -336,6 +358,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -404,6 +429,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -452,6 +486,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -497,6 +534,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -537,6 +583,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -609,6 +658,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -663,6 +721,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -707,6 +768,15 @@ public CompletableFuture> checkStatus(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -752,6 +822,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java index 66cbdf8f2..e9d1a1d7d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -112,6 +113,15 @@ public CompletableFuture>> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -150,6 +160,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -224,6 +237,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -273,6 +295,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -316,6 +341,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -355,6 +389,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -407,6 +444,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -441,6 +487,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -485,6 +534,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -533,6 +591,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -576,6 +637,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -621,6 +691,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -781,6 +854,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -825,6 +907,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -870,6 +955,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -919,6 +1013,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -972,6 +1069,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1021,6 +1127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java index a2f4a0a76..c7b4298e6 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -117,6 +118,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -181,6 +191,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -235,6 +248,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -284,6 +306,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -327,6 +352,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -367,6 +401,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java index 65ea9926a..587645081 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -84,6 +85,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -133,6 +143,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -178,6 +191,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -222,6 +244,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -275,6 +300,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -324,6 +358,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -395,6 +432,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -444,6 +490,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java index 96440b1bb..80cb58886 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -92,6 +93,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -153,6 +163,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -199,6 +212,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -248,6 +270,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -286,6 +311,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -329,6 +363,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -366,6 +403,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -406,6 +452,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -462,6 +511,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -506,6 +564,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -554,6 +615,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -593,6 +663,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java index 261c6a665..ec0622a7d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.ResponseBodyReader; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.Stream; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); @@ -109,9 +119,10 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO ResponseBody responseBody = response.body(); if (response.isSuccessful()) { future.complete(new ManagementApiHttpResponse<>( - Stream.fromSse( + Stream.fromSseWithEventDiscrimination( EventStreamSubscribeEventsResponseContent.class, - new ResponseBodyReader(response)), + new ResponseBodyReader(response), + "type"), response)); return; } @@ -156,6 +167,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java index 78bfab67e..15f60c3f4 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawFlowsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -204,6 +217,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -247,6 +269,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -299,6 +324,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -346,6 +380,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -383,6 +420,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -428,6 +474,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -484,6 +533,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -527,6 +585,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java index 9594af964..fc42a3250 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -93,6 +94,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -154,6 +164,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -200,6 +213,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -243,6 +265,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -295,6 +320,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -342,6 +376,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -379,6 +416,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -419,6 +465,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -475,6 +524,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -513,6 +571,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java index ae7a84603..d7fa57a94 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -117,6 +118,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -175,6 +185,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> get if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -266,6 +288,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -309,6 +334,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -349,6 +383,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java index 27410a0d3..ce0eaf4f4 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -113,6 +114,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -230,6 +243,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -278,6 +300,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -342,6 +367,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -389,6 +423,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -432,6 +469,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -472,6 +518,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -540,6 +589,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -593,6 +651,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java index fefa3dccd..0ea49cec3 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -66,6 +67,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java index b619ac29b..31cc2af0a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -209,6 +210,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -252,6 +262,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -618,6 +631,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -666,6 +688,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -950,6 +975,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -993,6 +1027,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1036,6 +1073,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1081,6 +1127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1361,6 +1410,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1404,6 +1462,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java index 1ab0e67d9..5843ef52a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -189,6 +190,15 @@ public CompletableFuture>> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -249,6 +259,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -293,6 +306,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -340,6 +362,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java index 2accd1740..0d9c18e34 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -103,6 +104,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -217,6 +230,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -311,6 +336,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -354,6 +388,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -407,6 +444,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -455,6 +501,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -498,6 +547,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -543,6 +601,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -611,6 +672,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -660,6 +730,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java index 4a0086140..e731a3d47 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -159,6 +160,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -220,6 +230,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -272,6 +285,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -321,6 +343,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -365,6 +390,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -414,6 +448,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -458,6 +495,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -506,6 +552,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -551,6 +600,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -596,6 +654,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -664,6 +725,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -708,6 +778,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java index 908370e5b..b4ecb8ab6 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawPromptsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -106,6 +116,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -173,6 +186,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -216,6 +238,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java index 6cc104b2e..87f9b4f6b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRateLimitPoliciesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -165,6 +175,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -211,6 +224,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -260,6 +282,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -298,6 +323,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -342,6 +376,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -379,6 +416,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -419,6 +465,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -466,6 +515,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -515,6 +573,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java index c2cef6201..2ff01beca 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -98,6 +99,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -229,6 +242,15 @@ public CompletableFuture> revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -269,6 +291,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -313,6 +338,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -404,6 +441,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -444,6 +490,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -512,6 +561,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -561,6 +619,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java index ffd130f3a..39aea3498 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawResourceServersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -110,6 +111,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -173,6 +183,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -225,6 +238,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -274,6 +296,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -338,6 +363,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -387,6 +421,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -430,6 +467,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -470,6 +516,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -538,6 +587,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -587,6 +645,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java index f400749a2..aab7c44e6 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -108,6 +109,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -222,6 +235,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -270,6 +292,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -314,6 +339,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -404,6 +441,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -449,6 +495,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -517,6 +566,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -560,6 +618,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java index 16bafce42..06aa5cadb 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -113,6 +114,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -232,6 +245,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -280,6 +302,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -348,6 +373,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -395,6 +429,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -438,6 +475,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -478,6 +524,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -546,6 +595,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -599,6 +657,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java index 43c04f64a..1a910b098 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -72,6 +73,15 @@ public CompletableFuture>> list(Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -110,6 +120,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -163,6 +176,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -201,6 +223,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -244,6 +269,15 @@ public CompletableFuture> delete(String key, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -279,6 +313,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java index d6431aac2..be0715d92 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -218,6 +231,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -272,6 +294,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -316,6 +341,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -370,6 +404,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -413,6 +450,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -458,6 +504,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -526,6 +575,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -580,6 +638,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java index e439fd36b..a514ff73e 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -70,6 +71,15 @@ public CompletableFuture> g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -156,6 +169,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -196,6 +218,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -264,6 +289,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -312,6 +346,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -356,6 +393,15 @@ public CompletableFuture> revoke(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -401,6 +447,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java index c1781c4a1..7674453da 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -67,6 +68,15 @@ public CompletableFuture> getActiveUsersCount( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -103,6 +113,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -168,6 +181,15 @@ public CompletableFuture>> getDaily( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -211,6 +233,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java index 53dbc7414..84eca523e 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -112,6 +122,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -164,6 +177,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -208,6 +230,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java index 48fac7d30..88b2914e8 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawTicketsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -79,6 +80,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -128,6 +138,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -199,6 +212,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -248,6 +270,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java index dadc0c7dc..4e6df64a9 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawTokenExchangeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -130,6 +131,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -191,6 +201,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -245,6 +258,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -294,6 +316,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -340,6 +365,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -389,6 +423,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -434,6 +471,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -469,6 +515,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -540,6 +589,15 @@ public CompletableFuture> update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -590,6 +648,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java index 89f7363a1..d2e345dbc 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -104,6 +105,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -167,6 +177,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -268,6 +290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -312,6 +337,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -351,6 +385,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -396,6 +433,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -440,6 +486,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -484,6 +533,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -528,6 +586,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -571,6 +632,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -606,6 +676,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -674,6 +747,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -723,6 +805,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java index 0fe4b306d..9cb228ebf 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserBlocksClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -79,6 +80,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -123,6 +133,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -170,6 +183,15 @@ public CompletableFuture> deleteByIdentifier( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -210,6 +232,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -277,6 +302,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -325,6 +359,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -370,6 +407,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -415,6 +461,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java index 0b1584e3f..7c013bee3 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -104,6 +105,15 @@ public CompletableFuture if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -160,6 +170,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -205,6 +218,15 @@ public CompletableFuture> deleteByUserId( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -240,6 +262,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -283,6 +308,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -318,6 +352,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java index fdca458bc..8443f782a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -174,6 +175,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -241,6 +251,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -295,6 +308,15 @@ public CompletableFuture> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -343,6 +365,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -400,6 +425,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -443,6 +477,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -511,6 +548,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -558,6 +604,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -601,6 +650,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -641,6 +699,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -985,6 +1046,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1033,6 +1103,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1079,6 +1152,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1123,6 +1205,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1191,6 +1276,15 @@ public CompletableFuture> revokeAccess( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -1231,6 +1325,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java index 76e96bd0e..9e924073c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java @@ -24,7 +24,6 @@ import com.auth0.client.mgmt.users.AsyncEffectivePermissionsClient; import com.auth0.client.mgmt.users.AsyncEffectiveRolesClient; import com.auth0.client.mgmt.users.AsyncEnrollmentsClient; -import com.auth0.client.mgmt.users.AsyncFederatedConnectionsTokensetsClient; import com.auth0.client.mgmt.users.AsyncGroupsClient; import com.auth0.client.mgmt.users.AsyncIdentitiesClient; import com.auth0.client.mgmt.users.AsyncLogsClient; @@ -56,8 +55,6 @@ public class AsyncUsersClient { protected final Supplier enrollmentsClient; - protected final Supplier federatedConnectionsTokensetsClient; - protected final Supplier groupsClient; protected final Supplier identitiesClient; @@ -87,8 +84,6 @@ public AsyncUsersClient(ClientOptions clientOptions) { this.effectivePermissionsClient = Suppliers.memoize(() -> new AsyncEffectivePermissionsClient(clientOptions)); this.effectiveRolesClient = Suppliers.memoize(() -> new AsyncEffectiveRolesClient(clientOptions)); this.enrollmentsClient = Suppliers.memoize(() -> new AsyncEnrollmentsClient(clientOptions)); - this.federatedConnectionsTokensetsClient = - Suppliers.memoize(() -> new AsyncFederatedConnectionsTokensetsClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); this.identitiesClient = Suppliers.memoize(() -> new AsyncIdentitiesClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions)); @@ -629,10 +624,6 @@ public AsyncEnrollmentsClient enrollments() { return this.enrollmentsClient.get(); } - public AsyncFederatedConnectionsTokensetsClient federatedConnectionsTokensets() { - return this.federatedConnectionsTokensetsClient.get(); - } - public AsyncGroupsClient groups() { return this.groupsClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java index 129ef1186..a3594fc52 100644 --- a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -111,6 +112,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -151,6 +161,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -194,6 +206,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -223,6 +244,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +281,15 @@ public ManagementApiHttpResponse get(String id, Reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -290,6 +322,8 @@ public ManagementApiHttpResponse get(String id, Reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -344,6 +378,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -374,6 +417,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -433,6 +478,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -465,6 +519,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -501,6 +557,15 @@ public ManagementApiHttpResponse deploy(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -530,6 +595,8 @@ public ManagementApiHttpResponse deploy(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -575,6 +642,15 @@ public ManagementApiHttpResponse test( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -604,6 +680,8 @@ public ManagementApiHttpResponse test( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java index ecba10b1c..e775ef15d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get(RequestOptions if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -89,6 +99,8 @@ public ManagementApiHttpResponse get(RequestOptions Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -146,6 +158,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -175,6 +196,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java index f49048a00..e9b648f75 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -120,6 +121,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -158,6 +168,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +213,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -236,6 +257,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -273,6 +296,15 @@ public ManagementApiHttpResponse get(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -302,6 +334,8 @@ public ManagementApiHttpResponse get(String id, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -337,6 +371,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -364,6 +407,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -424,6 +469,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -456,6 +510,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java index 57166ae35..8daab136f 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -228,6 +229,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -268,6 +278,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -337,6 +349,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -372,6 +393,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -420,6 +443,15 @@ public ManagementApiHttpResponse previewCimd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -453,6 +485,8 @@ public ManagementApiHttpResponse previewCimd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -517,6 +551,15 @@ public ManagementApiHttpResponse registerCimd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -550,6 +593,8 @@ public ManagementApiHttpResponse registerCimd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -704,6 +749,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -736,6 +790,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -771,6 +827,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -798,6 +863,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -893,6 +960,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -925,6 +1001,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -966,6 +1044,15 @@ public ManagementApiHttpResponse rotateSecret if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -999,6 +1086,8 @@ public ManagementApiHttpResponse rotateSecret Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java index ccc09694e..a83cd770b 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -216,6 +237,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -251,6 +274,15 @@ public ManagementApiHttpResponse l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -278,6 +310,8 @@ public ManagementApiHttpResponse l Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -314,6 +348,15 @@ public ManagementApiHttpResponse ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -344,6 +387,8 @@ public ManagementApiHttpResponse ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -380,6 +425,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -410,6 +464,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -445,6 +501,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -469,6 +534,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -529,6 +596,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -562,6 +638,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java index 2b70a36d2..5919c8e3c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -165,6 +166,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -205,6 +215,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -250,6 +262,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -282,6 +303,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -341,6 +364,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -373,6 +405,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -410,6 +444,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -437,6 +480,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -500,6 +545,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -535,6 +589,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -571,6 +627,15 @@ public ManagementApiHttpResponse checkStatus(String id, RequestOptions req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -601,6 +666,8 @@ public ManagementApiHttpResponse checkStatus(String id, RequestOptions req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java index d2da627b4..cf8dbf88a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -200,6 +212,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -233,6 +254,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -267,6 +290,15 @@ public ManagementApiHttpResponse getDefault(Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -293,6 +325,8 @@ public ManagementApiHttpResponse getDefault(Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -337,6 +371,15 @@ public ManagementApiHttpResponse setDefault( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -361,6 +404,8 @@ public ManagementApiHttpResponse setDefault( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -396,6 +441,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -428,6 +482,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -463,6 +519,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -493,6 +558,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -645,6 +712,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -675,6 +751,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -711,6 +789,15 @@ public ManagementApiHttpResponse test(String id if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -743,6 +830,8 @@ public ManagementApiHttpResponse test(String id Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -788,6 +877,15 @@ public ManagementApiHttpResponse verify( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -821,6 +919,8 @@ public ManagementApiHttpResponse verify( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java index 0c09b3c5a..8c661033b 100644 --- a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -111,6 +112,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -153,6 +163,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -199,6 +211,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -232,6 +253,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -267,6 +290,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -294,6 +326,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java index 285179573..4b0dead31 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -80,6 +81,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -113,6 +123,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -149,6 +161,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -178,6 +199,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -223,6 +246,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -255,6 +287,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -317,6 +351,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -350,6 +393,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java index 2b3c0ddb5..175b774bd 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -87,6 +88,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -128,6 +138,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -165,6 +177,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -197,6 +218,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -226,6 +249,15 @@ public ManagementApiHttpResponse get(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -255,6 +287,8 @@ public ManagementApiHttpResponse get(String id, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -284,6 +318,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -311,6 +354,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -359,6 +404,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -388,6 +442,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -428,6 +484,15 @@ public ManagementApiHttpResponse test if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -455,6 +520,8 @@ public ManagementApiHttpResponse test Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEventsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventsClient.java index 63ec6d1d5..f40a3dd0d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.ResponseBodyReader; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.Stream; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,14 +95,25 @@ public ManagementApiHttpResponse( - Stream.fromSse( - EventStreamSubscribeEventsResponseContent.class, new ResponseBodyReader(response)), + Stream.fromSseWithEventDiscrimination( + EventStreamSubscribeEventsResponseContent.class, + new ResponseBodyReader(response), + "type"), response); } String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -132,6 +144,8 @@ EventStreamSubscribeEventsResponseContent.class, new ResponseBodyReader(response Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java index 4ec62d732..7a0eec1ad 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -90,6 +91,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -130,6 +140,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -167,6 +179,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -196,6 +217,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -238,6 +261,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -270,6 +302,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -299,6 +333,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -329,6 +372,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -375,6 +420,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -404,6 +458,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java index c3c05bbcb..247f46d47 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -86,6 +87,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -126,6 +136,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -163,6 +175,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -192,6 +213,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -234,6 +257,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -266,6 +298,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -295,6 +329,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -322,6 +365,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -368,6 +413,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -394,6 +448,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java index ecaac54a7..9c75aa17c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -111,6 +112,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -185,6 +197,15 @@ public ManagementApiHttpResponse get(String id, Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -217,6 +238,8 @@ public ManagementApiHttpResponse get(String id, Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -252,6 +275,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -279,6 +311,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java index 72b6530a8..1b7b517c9 100644 --- a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -193,6 +205,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -225,6 +246,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -279,6 +302,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -311,6 +343,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -346,6 +380,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -373,6 +416,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -431,6 +476,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -466,6 +520,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java index cd2881e48..c6f8a2a6e 100644 --- a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -61,6 +62,15 @@ public ManagementApiHttpResponse get(String id, RequestOp if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -92,6 +102,8 @@ public ManagementApiHttpResponse get(String id, RequestOp Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java index 3f4e1e458..a9d57c812 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -204,6 +205,15 @@ public ManagementApiHttpResponse> list(RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -234,6 +244,8 @@ public ManagementApiHttpResponse> list(RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -591,6 +603,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -623,6 +644,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -898,6 +921,15 @@ public ManagementApiHttpResponse get(String id, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -927,6 +959,8 @@ public ManagementApiHttpResponse get(String id, Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -962,6 +996,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -992,6 +1035,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -1263,6 +1308,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -1292,6 +1346,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java index 43bc0ee0a..44a020ff9 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -183,6 +184,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -223,6 +233,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +270,15 @@ public ManagementApiHttpResponse get(String id, RequestOp if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -289,6 +310,8 @@ public ManagementApiHttpResponse get(String id, RequestOp Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java index 92638f1d6..c07135b1a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -182,6 +194,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -215,6 +236,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -250,6 +273,15 @@ public ManagementApiHttpResponse get(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -279,6 +311,8 @@ public ManagementApiHttpResponse get(String id, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -324,6 +358,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -356,6 +399,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -391,6 +436,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -421,6 +475,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -480,6 +536,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -512,6 +577,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java index 89a83f9dc..09bb80b3a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -153,6 +154,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -193,6 +203,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -237,6 +249,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -270,6 +291,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -306,6 +329,15 @@ public ManagementApiHttpResponse getByName if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -339,6 +371,8 @@ public ManagementApiHttpResponse getByName Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -374,6 +408,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -406,6 +449,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -443,6 +488,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -473,6 +527,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -533,6 +589,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -563,6 +628,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java index 6313099a7..d0ad47977 100644 --- a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse getSettings(Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -89,6 +99,8 @@ public ManagementApiHttpResponse getSettings(Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -147,6 +159,15 @@ public ManagementApiHttpResponse updateSettings( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -176,6 +197,8 @@ public ManagementApiHttpResponse updateSettings( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java index 0ba0552cc..77e264c35 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRateLimitPoliciesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -175,6 +187,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -208,6 +229,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -237,6 +260,15 @@ public ManagementApiHttpResponse get(String i if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -267,6 +299,8 @@ public ManagementApiHttpResponse get(String i Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -296,6 +330,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -323,6 +366,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -362,6 +407,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -395,6 +449,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java index d0ce81647..826dc6f23 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -93,6 +94,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -194,6 +206,15 @@ public ManagementApiHttpResponse revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -221,6 +242,8 @@ public ManagementApiHttpResponse revoke( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -256,6 +279,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -288,6 +320,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -323,6 +357,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -350,6 +393,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -410,6 +455,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -443,6 +497,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java index 2f53ba673..f4f448e18 100644 --- a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -104,6 +105,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -145,6 +155,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -189,6 +201,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -222,6 +243,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -277,6 +300,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -309,6 +341,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -344,6 +378,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -371,6 +414,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -431,6 +476,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -464,6 +518,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java index abd6e4d34..c5a37c595 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -142,6 +152,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -187,6 +199,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -219,6 +240,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -254,6 +277,15 @@ public ManagementApiHttpResponse get(String id, RequestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -286,6 +318,8 @@ public ManagementApiHttpResponse get(String id, RequestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -321,6 +355,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -351,6 +394,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -409,6 +454,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -438,6 +492,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java index 94cf975de..014e18255 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -195,6 +207,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -227,6 +248,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -285,6 +308,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -317,6 +349,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -352,6 +386,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -379,6 +422,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -437,6 +482,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -472,6 +526,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java index 3796bcc5f..43f22d659 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -68,6 +69,15 @@ public ManagementApiHttpResponse> list(RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -95,6 +105,8 @@ public ManagementApiHttpResponse> list(RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -140,6 +152,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -166,6 +187,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +224,15 @@ public ManagementApiHttpResponse delete(String key, RequestOptions request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -225,6 +257,8 @@ public ManagementApiHttpResponse delete(String key, RequestOptions request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java index 42f5cb522..13e517d13 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -182,6 +194,15 @@ public ManagementApiHttpResponse create if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -218,6 +239,8 @@ public ManagementApiHttpResponse create Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -254,6 +277,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -290,6 +322,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -325,6 +359,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -355,6 +398,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -415,6 +460,15 @@ public ManagementApiHttpResponse update if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -451,6 +505,8 @@ public ManagementApiHttpResponse update Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java index 24d00366a..20439bb54 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -65,6 +66,15 @@ public ManagementApiHttpResponse get(String id, Reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(String id, Reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -129,6 +141,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -156,6 +177,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -215,6 +238,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -247,6 +279,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -283,6 +317,15 @@ public ManagementApiHttpResponse revoke(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -313,6 +356,8 @@ public ManagementApiHttpResponse revoke(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java index f218abd27..9c86a3d48 100644 --- a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse getActiveUsersCount(RequestOptions requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -88,6 +98,8 @@ public ManagementApiHttpResponse getActiveUsersCount(RequestOptions requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -144,6 +156,15 @@ public ManagementApiHttpResponse> getDaily( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -174,6 +195,8 @@ public ManagementApiHttpResponse> getDaily( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java index 790db11a8..2420a3067 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get(Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse get(Requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -137,6 +149,15 @@ public ManagementApiHttpResponse patch( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -167,6 +188,8 @@ public ManagementApiHttpResponse patch( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java index c8455c635..98f953f8f 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -75,6 +76,15 @@ public ManagementApiHttpResponse verifyEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -107,6 +117,8 @@ public ManagementApiHttpResponse verifyEmail( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -170,6 +182,15 @@ public ManagementApiHttpResponse changePass if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -203,6 +224,8 @@ public ManagementApiHttpResponse changePass Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java index d3cbd646c..88165e294 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -124,6 +125,15 @@ public ManagementApiHttpResponse crea if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -244,6 +265,8 @@ public ManagementApiHttpResponse crea Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -282,6 +305,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -315,6 +347,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -352,6 +386,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -376,6 +419,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -438,6 +483,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -471,6 +525,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java index 5a9848c8c..20da040eb 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -140,6 +150,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -184,6 +196,15 @@ public ManagementApiHttpResponse crea if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -217,6 +238,8 @@ public ManagementApiHttpResponse crea Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -252,6 +275,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -345,6 +388,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -381,6 +426,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -411,6 +465,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -446,6 +502,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -470,6 +535,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -530,6 +597,15 @@ public ManagementApiHttpResponse upda if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -563,6 +639,8 @@ public ManagementApiHttpResponse upda Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java index 51ede97e6..7f57c7b50 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -75,6 +76,15 @@ public ManagementApiHttpResponse list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -105,6 +115,8 @@ public ManagementApiHttpResponse list Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -143,6 +155,15 @@ public ManagementApiHttpResponse deleteByIdentifier( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -170,6 +191,8 @@ public ManagementApiHttpResponse deleteByIdentifier( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -228,6 +251,15 @@ public ManagementApiHttpResponse list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -260,6 +292,8 @@ public ManagementApiHttpResponse list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -297,6 +331,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -327,6 +370,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java index 9388cba8d..a226a6870 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -97,6 +98,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -170,6 +182,15 @@ public ManagementApiHttpResponse deleteByUserId( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -194,6 +215,8 @@ public ManagementApiHttpResponse deleteByUserId( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -229,6 +252,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -253,6 +285,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java index 7e986d6b5..1ab2f0adb 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -167,6 +168,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -210,6 +220,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -255,6 +267,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -287,6 +308,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -336,6 +359,15 @@ public ManagementApiHttpResponse> listUsersByEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -366,6 +398,8 @@ public ManagementApiHttpResponse> listUsersByEmail( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -424,6 +458,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -456,6 +499,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -491,6 +536,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -518,6 +572,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -852,6 +908,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -884,6 +949,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -921,6 +988,15 @@ public ManagementApiHttpResponse reg if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -951,6 +1027,8 @@ public ManagementApiHttpResponse reg Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -1010,6 +1088,15 @@ public ManagementApiHttpResponse revokeAccess( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -1037,6 +1124,8 @@ public ManagementApiHttpResponse revokeAccess( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/UsersClient.java b/src/main/java/com/auth0/client/mgmt/UsersClient.java index 9efeaaa66..0d9cf59d2 100644 --- a/src/main/java/com/auth0/client/mgmt/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/UsersClient.java @@ -24,7 +24,6 @@ import com.auth0.client.mgmt.users.EffectivePermissionsClient; import com.auth0.client.mgmt.users.EffectiveRolesClient; import com.auth0.client.mgmt.users.EnrollmentsClient; -import com.auth0.client.mgmt.users.FederatedConnectionsTokensetsClient; import com.auth0.client.mgmt.users.GroupsClient; import com.auth0.client.mgmt.users.IdentitiesClient; import com.auth0.client.mgmt.users.LogsClient; @@ -55,8 +54,6 @@ public class UsersClient { protected final Supplier enrollmentsClient; - protected final Supplier federatedConnectionsTokensetsClient; - protected final Supplier groupsClient; protected final Supplier identitiesClient; @@ -86,8 +83,6 @@ public UsersClient(ClientOptions clientOptions) { this.effectivePermissionsClient = Suppliers.memoize(() -> new EffectivePermissionsClient(clientOptions)); this.effectiveRolesClient = Suppliers.memoize(() -> new EffectiveRolesClient(clientOptions)); this.enrollmentsClient = Suppliers.memoize(() -> new EnrollmentsClient(clientOptions)); - this.federatedConnectionsTokensetsClient = - Suppliers.memoize(() -> new FederatedConnectionsTokensetsClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); this.identitiesClient = Suppliers.memoize(() -> new IdentitiesClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new LogsClient(clientOptions)); @@ -624,10 +619,6 @@ public EnrollmentsClient enrollments() { return this.enrollmentsClient.get(); } - public FederatedConnectionsTokensetsClient federatedConnectionsTokensets() { - return this.federatedConnectionsTokensetsClient.get(); - } - public GroupsClient groups() { return this.groupsClient.get(); } 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 a04c39b7a..738bd0309 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -66,6 +67,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -115,6 +125,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 1ef05d174..693349cf0 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java @@ -16,6 +16,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -105,6 +106,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -167,6 +177,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -219,6 +232,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -268,6 +290,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -312,6 +337,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -403,6 +440,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -453,6 +499,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -521,6 +570,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -575,6 +633,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -639,6 +700,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -707,6 +777,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -761,6 +834,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -815,6 +897,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java index ba19838e4..1b9df86ab 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawTriggersClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -108,6 +118,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 091fd31a7..d4df73484 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -161,6 +171,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -208,6 +221,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -257,6 +279,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -335,6 +360,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -379,6 +413,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 33f89ebd1..28f7430f1 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -61,6 +62,15 @@ public ManagementApiHttpResponse get(String i if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(String i Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 ec5335526..bfc967ba6 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java @@ -16,6 +16,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -99,6 +100,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -216,6 +237,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -251,6 +274,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -283,6 +315,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -318,6 +352,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -351,6 +394,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -411,6 +456,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -447,6 +501,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -503,6 +559,15 @@ public ManagementApiHttpResponse> listAct if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -546,6 +611,8 @@ public ManagementApiHttpResponse> listAct Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -592,6 +659,15 @@ public ManagementApiHttpResponse rollback( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -628,6 +704,8 @@ public ManagementApiHttpResponse rollback( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 2a673f3e6..0ce7351c9 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -59,6 +60,15 @@ public ManagementApiHttpResponse list(Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -89,6 +99,8 @@ public ManagementApiHttpResponse list(Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 21866d536..bfcc88626 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -172,6 +184,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -204,6 +225,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -273,6 +296,15 @@ public ManagementApiHttpResponse deploy( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -303,6 +335,8 @@ public ManagementApiHttpResponse deploy( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 b22e064a2..cf6b71d83 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -211,6 +224,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -265,6 +287,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -312,6 +337,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 764b30143..d02017058 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -93,6 +94,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -174,6 +186,15 @@ public ManagementApiHttpResponse creat if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -210,6 +231,8 @@ public ManagementApiHttpResponse creat Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -248,6 +271,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -281,6 +313,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 4faeaf1be..5ccb8f209 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.modules.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetActionModuleVersionsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return The maximum number of results to be returned by the server in a single response. 20 by default. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 e1984a1d2..00a1c5d4b 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 @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -165,6 +175,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -239,6 +252,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -283,6 +305,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 16b425983..974df02f0 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 @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -202,6 +214,15 @@ public ManagementApiHttpResponse updateMany if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -232,6 +253,8 @@ public ManagementApiHttpResponse updateMany Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 acd2c1d25..1aee98078 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.triggers.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private ListActionTriggerBindingsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return The maximum number of results to be returned in a single request. 20 by default */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 8a8359a21..10c659a26 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 @@ -220,7 +220,6 @@ public Builder from(CreateActionModuleRequestContent other) { } /** - *

The name of the action module.

*

The name of the action module.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -232,7 +231,6 @@ public CodeStage name(@NotNull String name) { } /** - *

The source code of the action module.

*

The source code of the action module.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d827711cd..de37eaad8 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetActionModuleActionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 c82de9ca6..d63dc95cd 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetActionModulesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Paging is disabled if parameter not sent. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 cf233fb51..3ce893438 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.actions.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private ListActionVersionsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getPage() { /** * @return This field specify the maximum number of results to be returned by the server. 20 by default */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getPerPage() { return perPage; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 987bbffb5..01a1e104d 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 @@ -99,7 +99,6 @@ public Builder from(RollbackActionModuleRequestParameters other) { } /** - *

The unique ID of the module version to roll back to.

*

The unique ID of the module version to roll back to.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 810421066..9247048b4 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public CompletableFuture> checkIp(String id, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -109,6 +119,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -152,6 +165,15 @@ public CompletableFuture> unblockIp(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -192,6 +214,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 4622565ca..3c9e335c8 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -60,6 +61,15 @@ public ManagementApiHttpResponse checkIp(String id, RequestOptions request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -90,6 +100,8 @@ public ManagementApiHttpResponse checkIp(String id, RequestOptions request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -125,6 +137,15 @@ public ManagementApiHttpResponse unblockIp(String id, RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -152,6 +173,8 @@ public ManagementApiHttpResponse unblockIp(String id, RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 f86083c20..cf8cf67d4 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -180,6 +193,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -229,6 +251,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java index 8ba08db88..4d184bdca 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBreachedPasswordDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -177,6 +190,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -222,6 +244,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java index 1ed0a082d..f3a5723a9 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBruteForceProtectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -174,6 +187,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -218,6 +240,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java index 97ee30009..1701bc99f 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawCaptchaClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -112,6 +122,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -179,6 +192,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -223,6 +245,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java index 97d182178..eb1ebd324 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawPhoneProviderProtectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -112,6 +122,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -164,6 +177,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -203,6 +225,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java index 22e6cad82..a6cf3e1c8 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawSuspiciousIpThrottlingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -68,6 +69,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -176,6 +189,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -220,6 +242,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 d098bc9fc..3612203ca 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get(Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse upda if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -185,6 +206,8 @@ public ManagementApiHttpResponse upda Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 07cca9b08..e1a72ece3 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get(Reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -90,6 +100,8 @@ public ManagementApiHttpResponse get(Reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -148,6 +160,15 @@ public ManagementApiHttpResponse update if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -178,6 +199,8 @@ public ManagementApiHttpResponse update Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 dcc0b0620..88f364a7f 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -182,6 +203,8 @@ public ManagementApiHttpResponse u Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java index 16f5329dd..aef7020d2 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawPhoneProviderProtectionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -63,6 +64,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -137,6 +149,15 @@ public ManagementApiHttpResponse pa if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -164,6 +185,8 @@ public ManagementApiHttpResponse pa Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 d4f349a67..9eb01b9f8 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -199,6 +212,15 @@ public CompletableFuture> updateUniversalLogin( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -249,6 +271,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -285,6 +310,15 @@ public CompletableFuture> deleteUniversalLogin(R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -325,6 +359,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 405a64b27..2a0075425 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -131,6 +141,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -174,6 +187,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -218,6 +240,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -262,6 +287,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -306,6 +340,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -349,6 +386,15 @@ public CompletableFuture> delete(String themeId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -389,6 +435,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -442,6 +491,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -491,6 +549,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 7e1502efd..2fcb7f8e8 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -60,6 +61,15 @@ public ManagementApiHttpResponse getUn if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -93,6 +103,8 @@ public ManagementApiHttpResponse getUn Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -170,6 +182,15 @@ public ManagementApiHttpResponse updateUniversalLogin( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -203,6 +224,8 @@ public ManagementApiHttpResponse updateUniversalLogin( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -231,6 +254,15 @@ public ManagementApiHttpResponse deleteUniversalLogin(RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -258,6 +290,8 @@ public ManagementApiHttpResponse deleteUniversalLogin(RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 8b9de65b4..a98bba13c 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -78,6 +79,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -111,6 +121,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -145,6 +157,15 @@ public ManagementApiHttpResponse getDefa if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -175,6 +196,8 @@ public ManagementApiHttpResponse getDefa Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -211,6 +234,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -240,6 +272,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -275,6 +309,15 @@ public ManagementApiHttpResponse delete(String themeId, RequestOptions req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -302,6 +345,8 @@ public ManagementApiHttpResponse delete(String themeId, RequestOptions req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -347,6 +392,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -380,6 +434,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 820cee52d..65d4a6f64 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 @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -141,6 +151,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -195,6 +208,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -244,6 +266,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -288,6 +313,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -337,6 +371,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -380,6 +417,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -420,6 +466,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -492,6 +541,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -546,6 +604,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -594,6 +655,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -648,6 +718,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java index ed944f781..2b3b66545 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawTemplatesClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -87,6 +88,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -131,6 +141,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -186,6 +199,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -235,6 +257,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -273,6 +298,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -322,6 +356,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -359,6 +396,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -404,6 +450,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -460,6 +509,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -509,6 +567,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -557,6 +618,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -601,6 +671,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -649,6 +722,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -698,6 +780,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 a057218bc..4590a0ea8 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 @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -122,6 +132,8 @@ public ManagementApiHttpResponse list Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -168,6 +180,15 @@ public ManagementApiHttpResponse cre if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -201,6 +222,8 @@ public ManagementApiHttpResponse cre Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -237,6 +260,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -270,6 +302,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -305,6 +339,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -332,6 +375,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -396,6 +441,15 @@ public ManagementApiHttpResponse upd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -432,6 +486,8 @@ public ManagementApiHttpResponse upd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -472,6 +528,15 @@ public ManagementApiHttpResponse tes if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -508,6 +573,8 @@ public ManagementApiHttpResponse tes Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 976583584..4c9b54675 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 @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public ManagementApiHttpResponse list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -112,6 +122,8 @@ public ManagementApiHttpResponse list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -158,6 +170,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -191,6 +212,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -220,6 +243,15 @@ public ManagementApiHttpResponse get(String id, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -252,6 +284,8 @@ public ManagementApiHttpResponse get(String id, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -281,6 +315,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -311,6 +354,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -359,6 +404,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -392,6 +446,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -432,6 +488,15 @@ public ManagementApiHttpResponse reset( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -462,6 +527,8 @@ public ManagementApiHttpResponse reset( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -502,6 +569,15 @@ public ManagementApiHttpResponseThe recipient phone number to receive a given notification.

*

The recipient phone number to receive a given notification.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 fc07009bf..338501484 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 @@ -126,7 +126,6 @@ public Builder from(CreatePhoneTemplateTestNotificationRequestContent other) { } /** - *

Destination of the testing phone notification

*

Destination of the testing phone notification

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2d1dfa6d8..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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.branding.phone.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -35,7 +36,8 @@ private ListBrandingPhoneProvidersRequestParameters( /** * @return Whether the provider is enabled (false) or disabled (true). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") public OptionalNullable getDisabled() { if (disabled == null) { return OptionalNullable.absent(); @@ -43,6 +45,12 @@ public OptionalNullable getDisabled() { return disabled; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") + private OptionalNullable _getDisabled() { + return disabled; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 30200d259..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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.branding.phone.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -35,7 +36,8 @@ private ListPhoneTemplatesRequestParameters( /** * @return Whether the template is enabled (false) or disabled (true). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") public OptionalNullable getDisabled() { if (disabled == null) { return OptionalNullable.absent(); @@ -43,6 +45,12 @@ public OptionalNullable getDisabled() { return disabled; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("disabled") + private OptionalNullable _getDisabled() { + return disabled; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7e3cc9b3d..ae436b51e 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -84,6 +85,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -152,6 +162,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 c7a26bd48..3037d6059 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -78,6 +79,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -123,6 +133,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 62f321ec8..be8f77517 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.clientgrants.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListClientGrantOrganizationsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 9c7bf3264..e8083c477 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -123,6 +124,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -188,6 +198,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 2db33b122..1a4451536 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -78,6 +79,15 @@ public CompletableFuture>> list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -121,6 +131,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -255,6 +268,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -304,6 +326,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -353,6 +378,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -397,6 +431,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -443,6 +480,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -483,6 +529,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -564,6 +613,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -613,6 +671,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 09cce9633..2f02e4973 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -118,6 +119,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -161,6 +171,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 ce2d0262f..dfdc846dd 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse> list(String clientId, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -103,6 +113,8 @@ public ManagementApiHttpResponse> list(String clientId, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -229,6 +241,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -262,6 +283,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -302,6 +325,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -332,6 +364,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -369,6 +403,15 @@ public ManagementApiHttpResponse delete(String clientId, String credential if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -396,6 +439,8 @@ public ManagementApiHttpResponse delete(String clientId, String credential Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -469,6 +514,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -502,6 +556,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 e668020d8..6364a5882 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 @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.clients.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.ConnectionStrategyEnum; @@ -11,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -66,7 +68,8 @@ public Optional> getStrategy() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -77,7 +80,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -88,7 +92,8 @@ public OptionalNullable getTake() { /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -99,7 +104,8 @@ public OptionalNullable getFields() { /** * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -107,6 +113,36 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("strategy") + private Optional> _getStrategy() { + return strategy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 b703a6e3e..a6eb60d63 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -261,6 +283,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 5cc77c53a..5d947ecb4 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -213,6 +226,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -262,6 +284,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -336,6 +361,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -390,6 +424,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -434,6 +471,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -479,6 +525,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -553,6 +602,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -602,6 +660,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -649,6 +710,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -699,6 +769,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -770,6 +843,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -836,6 +918,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -891,6 +976,15 @@ public CompletableFuture> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -941,6 +1035,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 a779cf9de..42666920c 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -77,6 +78,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -125,6 +135,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -198,6 +211,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -253,6 +275,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -326,6 +351,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -375,6 +409,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java index f67aa36fd..2b794ce11 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawScimConfigurationClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -163,6 +173,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -208,6 +221,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -242,6 +264,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -314,6 +339,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -348,6 +382,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -392,6 +429,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -422,6 +468,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -476,6 +525,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -510,6 +568,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -557,6 +618,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -591,6 +661,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 3e6a44b97..0f7fec1ff 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -70,6 +71,15 @@ public CompletableFuture> deleteByEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -115,6 +125,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 20433e63a..2ba7bf914 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java @@ -12,6 +12,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public ManagementApiHttpResponse> ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -141,6 +151,8 @@ public ManagementApiHttpResponse> ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -181,6 +193,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -211,6 +232,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 f91bcb49f..4c30b1a0f 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -101,6 +102,15 @@ public ManagementApiHttpResponse> list if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -142,6 +152,8 @@ public ManagementApiHttpResponse> list Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -179,6 +191,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -212,6 +233,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -278,6 +301,15 @@ public ManagementApiHttpResponse cre if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -314,6 +346,8 @@ public ManagementApiHttpResponse cre Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -350,6 +384,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -380,6 +423,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -446,6 +491,15 @@ public ManagementApiHttpResponse upd if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -479,6 +533,8 @@ public ManagementApiHttpResponse upd Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -518,6 +574,15 @@ public ManagementApiHttpResponse> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -655,6 +731,8 @@ public ManagementApiHttpResponse> l Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -701,6 +779,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -734,6 +821,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 bc12dcb99..b75a50776 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -72,6 +73,15 @@ public ManagementApiHttpResponse> get(String id, RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -105,6 +115,8 @@ public ManagementApiHttpResponse> get(String id, RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -169,6 +181,15 @@ public ManagementApiHttpResponse> c if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -206,6 +227,8 @@ public ManagementApiHttpResponse> c Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -271,6 +294,15 @@ public ManagementApiHttpResponse rotate( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -304,6 +336,8 @@ public ManagementApiHttpResponse rotate( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 7836a8672..da6293f13 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -136,6 +146,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -173,6 +185,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -197,6 +218,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -261,6 +284,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -285,6 +317,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -321,6 +355,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -342,6 +385,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -388,6 +433,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -412,6 +466,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -450,6 +506,15 @@ public ManagementApiHttpResponse deleteByEmail( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -96,6 +106,8 @@ public ManagementApiHttpResponse deleteByEmail( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 12284e19c..813982e93 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 @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -71,6 +72,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -125,6 +135,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 966d64c97..fb6e59862 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 @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -66,6 +67,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -102,6 +112,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 aa3802584..a23a5872f 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -72,6 +73,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -105,6 +115,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -175,6 +188,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -213,6 +235,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -259,6 +284,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -289,6 +323,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 2d587423e..e52946ba4 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -67,6 +68,15 @@ public ManagementApiHttpResponse> get(String id, RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -91,6 +101,8 @@ public ManagementApiHttpResponse> get(String id, RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -178,6 +199,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -215,6 +238,15 @@ public ManagementApiHttpResponse delete(String id, String tokenId, Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -236,6 +268,8 @@ public ManagementApiHttpResponse delete(String id, String tokenId, Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 fdb8d0433..ab7fb72c6 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 @@ -6,9 +6,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; @@ -31,7 +31,7 @@ private DeleteConnectionUsersByEmailQueryParameters(String email, MapThe email of the user to delete

*

The email of the user to delete

* @return Reference to {@code this} so that method calls can be chained together. */ 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 8dd7953d1..2622e4a21 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private GetConnectionEnabledClientsRequestParameters( /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getTake() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getFrom() { return from; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 839553d4c..675a4cd07 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListDirectoryProvisioningsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java index b881a833d..30dc3c042 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListScimConfigurationsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java index e25018aba..441837652 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.connections.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListSynchronizedGroupsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 a7dfe6aae..a941db606 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 @@ -127,7 +127,6 @@ public Builder from(UpdateScimConfigurationRequestContent other) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java b/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java index bee373689..ee204b301 100644 --- a/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java +++ b/src/main/java/com/auth0/client/mgmt/core/DateTimeDeserializer.java @@ -14,11 +14,13 @@ import java.time.OffsetDateTime; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; import java.time.temporal.TemporalAccessor; import java.time.temporal.TemporalQueries; /** - * Custom deserializer that handles converting ISO8601 dates into {@link OffsetDateTime} objects. + * Custom deserializer that handles converting date-time strings into {@link OffsetDateTime} objects. + * Supports ISO 8601 format, space-separated variants, and RFC 1123 (RFC 2822) format. */ class DateTimeDeserializer extends JsonDeserializer { private static final SimpleModule MODULE; @@ -42,8 +44,21 @@ public OffsetDateTime deserialize(JsonParser parser, DeserializationContext cont if (token == JsonToken.VALUE_NUMBER_INT) { return OffsetDateTime.ofInstant(Instant.ofEpochSecond(parser.getValueAsLong()), ZoneOffset.UTC); } else { - TemporalAccessor temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest( - parser.getValueAsString(), OffsetDateTime::from, LocalDateTime::from); + String value = parser.getValueAsString(); + TemporalAccessor temporal; + try { + temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest(value, OffsetDateTime::from, LocalDateTime::from); + } catch (DateTimeParseException e) { + try { + // Fall back to space-separated format (e.g. "2025-02-15 10:30:00+00:00"). + temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest( + value.replace(' ', 'T'), OffsetDateTime::from, LocalDateTime::from); + } catch (DateTimeParseException e2) { + // Fall back to RFC 1123 format (e.g. "Thu, 07 May 2026 14:23:38 +0000"). + temporal = DateTimeFormatter.RFC_1123_DATE_TIME.parseBest( + value, OffsetDateTime::from, LocalDateTime::from); + } + } if (temporal.query(TemporalQueries.offset()) == null) { return LocalDateTime.from(temporal).atOffset(ZoneOffset.UTC); diff --git a/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java b/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java index 6e198cff5..aa5a7413b 100644 --- a/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java +++ b/src/main/java/com/auth0/client/mgmt/core/RetryInterceptor.java @@ -11,6 +11,7 @@ import java.util.Optional; import java.util.Random; import okhttp3.Interceptor; +import okhttp3.Request; import okhttp3.Response; public class RetryInterceptor implements Interceptor { @@ -28,17 +29,24 @@ public RetryInterceptor(int maxRetries) { @Override public Response intercept(Chain chain) throws IOException { - Response response = chain.proceed(chain.request()); + Request request = chain.request(); + int effectiveMaxRetries = resolveMaxRetries(request); + Response response = chain.proceed(request); if (shouldRetry(response.code())) { - return retryChain(response, chain); + return retryChain(response, chain, effectiveMaxRetries); } return response; } - private Response retryChain(Response response, Chain chain) throws IOException { - ExponentialBackoff backoff = new ExponentialBackoff(this.maxRetries); + private int resolveMaxRetries(Request request) { + MaxRetriesOverride override = request.tag(MaxRetriesOverride.class); + return override != null ? override.getValue() : this.maxRetries; + } + + private Response retryChain(Response response, Chain chain, int maxRetries) throws IOException { + ExponentialBackoff backoff = new ExponentialBackoff(maxRetries); Optional nextBackoff = backoff.nextBackoff(response); while (nextBackoff.isPresent()) { try { @@ -158,6 +166,23 @@ private static boolean shouldRetry(int statusCode) { return statusCode == 408 || statusCode == 429 || statusCode >= 500; } + /** + * Per-request override carried on the OkHttp {@link Request} as a tag. + * When present, the interceptor uses this value instead of the client-wide + * {@code maxRetries} configured at construction time. + */ + public static final class MaxRetriesOverride { + private final int value; + + public MaxRetriesOverride(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + } + private final class ExponentialBackoff { private final int maxNumRetries; 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 88c650c85..ed22deb64 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.emails.types.CreateEmailProviderRequestContent; import com.auth0.client.mgmt.emails.types.GetEmailProviderRequestParameters; import com.auth0.client.mgmt.emails.types.UpdateEmailProviderRequestContent; @@ -98,6 +99,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -147,6 +157,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -255,6 +268,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -304,6 +326,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -346,6 +371,15 @@ public CompletableFuture> delete(RequestOptions if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -391,6 +425,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -574,6 +611,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -628,6 +674,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 bc05ce562..73d40acdf 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.emails.types.CreateEmailProviderRequestContent; import com.auth0.client.mgmt.emails.types.GetEmailProviderRequestParameters; import com.auth0.client.mgmt.emails.types.UpdateEmailProviderRequestContent; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -124,6 +134,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -224,6 +236,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -257,6 +278,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -291,6 +314,15 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -321,6 +353,8 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -495,6 +529,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -531,6 +574,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 3c81c4d53..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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.emails.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetEmailProviderRequestParameters( /** * @return Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve name and enabled. Additional fields available include credentials, default_from_address, and settings. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3a8ce9ff6..787911037 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -97,6 +98,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -145,6 +155,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -186,6 +199,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -230,6 +252,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 a4c20b191..23d3c1757 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -82,6 +83,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -131,6 +141,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -171,6 +184,15 @@ public CompletableFuture> createById( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -216,6 +238,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 e897dad04..925579923 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -125,6 +135,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -158,6 +170,15 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -188,6 +209,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 a26608a9f..146d0d6b4 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -78,6 +79,15 @@ public ManagementApiHttpResponse cre if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -111,6 +121,8 @@ public ManagementApiHttpResponse cre Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -142,6 +154,15 @@ public ManagementApiHttpResponse createById(String id, String eventId, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -172,6 +193,8 @@ public ManagementApiHttpResponse createById(String id, String eventId, Req Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 b34bbe28e..149afec5c 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.eventstreams.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListEventStreamDeliveriesRequestParameters( /** * @return Comma-separated list of statuses by which to filter */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("statuses") public OptionalNullable getStatuses() { if (statuses == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getStatuses() { /** * @return Comma-separated list of event types by which to filter */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("event_types") public OptionalNullable getEventTypes() { if (eventTypes == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getEventTypes() { /** * @return An RFC-3339 date-time for redelivery start, inclusive. Does not allow sub-second precision. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_from") public OptionalNullable getDateFrom() { if (dateFrom == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getDateFrom() { /** * @return An RFC-3339 date-time for redelivery end, exclusive. Does not allow sub-second precision. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_to") public OptionalNullable getDateTo() { if (dateTo == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getDateTo() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("statuses") + private OptionalNullable _getStatuses() { + return statuses; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("event_types") + private OptionalNullable _getEventTypes() { + return eventTypes; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_from") + private OptionalNullable _getDateFrom() { + return dateFrom; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("date_to") + private OptionalNullable _getDateTo() { + return dateTo; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 2a5f39b8a..c1a547519 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -85,6 +86,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -146,6 +156,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -206,6 +219,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -250,6 +272,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -290,6 +315,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -330,6 +364,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 51c38d571..0dfb0eb92 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -80,6 +81,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -121,6 +131,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -172,6 +184,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -201,6 +222,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -232,6 +255,15 @@ public ManagementApiHttpResponse delete(String flowId, String executionId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -259,6 +291,8 @@ public ManagementApiHttpResponse delete(String flowId, String executionId, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 b630e8ddd..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 @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.flows.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.types.GetFlowExecutionRequestParametersHydrateEnum; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -46,6 +48,12 @@ public Optional> getHydrate() return hydrate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7faee5d0a..c7f267923 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.flows.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListFlowExecutionsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 811186f6d..9d9e6e3ad 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -88,6 +89,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -154,6 +164,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -200,6 +213,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -244,6 +266,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -282,6 +307,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -331,6 +365,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -368,6 +405,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -408,6 +454,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -464,6 +513,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -513,6 +571,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 56969cf99..b76c729d0 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -83,6 +84,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -126,6 +136,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -164,6 +176,15 @@ public ManagementApiHttpResponse crea if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -194,6 +215,8 @@ public ManagementApiHttpResponse crea Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -224,6 +247,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -257,6 +289,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -286,6 +320,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -313,6 +356,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -361,6 +406,15 @@ public ManagementApiHttpResponse upda if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -394,6 +448,8 @@ public ManagementApiHttpResponse upda Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 522da4a41..7498b81c7 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.flows.vault.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListFlowsVaultConnectionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7d30c814f..e67659312 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java index b5abe3114..8de3e8ad2 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -162,6 +172,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -261,6 +283,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -315,6 +340,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 1473c4545..c492781f7 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -140,6 +150,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java index 23185711f..1579668c3 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -93,6 +94,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -135,6 +145,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -180,6 +192,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -210,6 +231,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -255,6 +278,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -285,6 +317,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 9a9e524e9..cd4db8323 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.groups.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private GetGroupMembersRequestParameters( /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getIncludeFields() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java index 417c9c744..39ffbc714 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/groups/types/ListGroupRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.groups.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListGroupRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 35a13ab86..41d409344 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -77,6 +78,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -121,6 +131,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -204,6 +226,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -247,6 +272,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -282,6 +316,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 9d0c81b9d..134568c7d 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -69,6 +70,15 @@ public CompletableFuture>> list(R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -107,6 +117,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -160,6 +173,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -199,6 +221,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java index c72388dd6..f3805533c 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawPoliciesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -78,6 +79,15 @@ public CompletableFuture>> list(Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -116,6 +126,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -179,6 +192,15 @@ public CompletableFuture>> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -217,6 +239,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 1af3e0d54..edf239c9a 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -103,6 +113,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -139,6 +151,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -166,6 +187,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +224,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -225,6 +257,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 09ddffd78..0b2a39b00 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -65,6 +66,15 @@ public ManagementApiHttpResponse> list(RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -92,6 +102,8 @@ public ManagementApiHttpResponse> list(RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -137,6 +149,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -163,6 +184,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 3fbc2bce6..bba0d10b9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -74,6 +75,15 @@ public ManagementApiHttpResponse> list(RequestOptions reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -101,6 +111,8 @@ public ManagementApiHttpResponse> list(RequestOptions reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -156,6 +168,15 @@ public ManagementApiHttpResponse> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -183,6 +204,8 @@ public ManagementApiHttpResponse> set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 3071a7d43..b3610c867 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -78,6 +79,15 @@ public AsyncRawPhoneClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -117,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -169,6 +182,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -213,6 +235,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -257,6 +282,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -296,6 +330,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -367,6 +404,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -406,6 +452,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -450,6 +499,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -489,6 +547,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -535,6 +596,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -574,6 +644,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -617,6 +690,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -656,6 +738,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -708,6 +793,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -747,6 +841,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java index 04d689007..5a07086e6 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPushNotificationClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -84,6 +85,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -123,6 +133,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -197,6 +210,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -237,6 +259,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -315,6 +340,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -355,6 +389,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -426,6 +463,15 @@ public CompletableFuture>> setFcmP if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -464,6 +510,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -535,6 +584,15 @@ public CompletableFuture>> updateF if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -573,6 +631,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -644,6 +705,15 @@ public CompletableFuture>> setFcmv if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -682,6 +752,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -753,6 +826,15 @@ public CompletableFuture>> updateF if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -791,6 +873,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -834,6 +919,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -873,6 +967,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -947,6 +1044,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -987,6 +1093,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1061,6 +1170,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1101,6 +1219,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1145,6 +1266,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1185,6 +1315,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -1238,6 +1371,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -1278,6 +1420,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 99d893513..9af12cf9a 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -23,7 +24,9 @@ import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; +import java.util.Optional; import java.util.concurrent.CompletableFuture; import okhttp3.Call; import okhttp3.Callback; @@ -78,6 +81,15 @@ public AsyncRawSmsClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -117,6 +129,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -196,6 +211,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -235,6 +259,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -283,6 +310,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -322,6 +358,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -378,6 +417,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -417,6 +465,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -435,7 +486,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public CompletableFuture> getTemplates() { + public CompletableFuture>> + getTemplates() { return getTemplates(null); } @@ -444,8 +496,8 @@ public CompletableFuturePrevious function: Retrieve details of SMS enrollment and verification templates configured for your tenant. * */ - public CompletableFuture> getTemplates( - RequestOptions requestOptions) { + public CompletableFuture>> + getTemplates(RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/factors/sms/templates"); @@ -464,7 +516,16 @@ public CompletableFuture> future = + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -474,7 +535,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO if (response.isSuccessful()) { future.complete(new ManagementApiHttpResponse<>( ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, GetGuardianFactorSmsTemplatesResponseContent.class), + responseBodyString, + new TypeReference>() {}), response)); return; } @@ -503,6 +565,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -559,6 +624,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -598,6 +672,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java index 32a918da3..51571cfea 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncSmsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.types.SetGuardianFactorSmsTemplatesResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AsyncSmsClient { @@ -135,7 +136,7 @@ public CompletableFuture setProvid *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public CompletableFuture getTemplates() { + public CompletableFuture> getTemplates() { return this.rawClient.getTemplates().thenApply(response -> response.body()); } @@ -144,7 +145,8 @@ public CompletableFuture getTempla *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public CompletableFuture getTemplates(RequestOptions requestOptions) { + public CompletableFuture> getTemplates( + RequestOptions requestOptions) { return this.rawClient.getTemplates(requestOptions).thenApply(response -> response.body()); } 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 440e07993..298166602 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -386,6 +440,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -424,6 +480,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -451,6 +516,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -486,6 +553,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -513,6 +589,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -557,6 +635,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -584,6 +671,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 3bf707184..54f542766 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -79,6 +80,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -106,6 +116,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -169,6 +181,15 @@ public ManagementApiHttpResponse> setFcmProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -380,6 +423,8 @@ public ManagementApiHttpResponse> setFcmProvider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -442,6 +487,15 @@ public ManagementApiHttpResponse> updateFcmProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -469,6 +523,8 @@ public ManagementApiHttpResponse> updateFcmProvider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -531,6 +587,15 @@ public ManagementApiHttpResponse> setFcmv1Provider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -558,6 +623,8 @@ public ManagementApiHttpResponse> setFcmv1Provider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -620,6 +687,15 @@ public ManagementApiHttpResponse> updateFcmv1Provider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -647,6 +723,8 @@ public ManagementApiHttpResponse> updateFcmv1Provider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -682,6 +760,15 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -709,6 +796,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -772,6 +861,15 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -262,6 +296,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -310,6 +346,15 @@ public ManagementApiHttpResponse s if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -337,6 +382,8 @@ public ManagementApiHttpResponse s Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -347,7 +394,7 @@ public ManagementApiHttpResponse s *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public ManagementApiHttpResponse getTemplates() { + public ManagementApiHttpResponse> getTemplates() { return getTemplates(null); } @@ -356,7 +403,7 @@ public ManagementApiHttpResponse g *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public ManagementApiHttpResponse getTemplates( + public ManagementApiHttpResponse> getTemplates( RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -376,13 +423,23 @@ public ManagementApiHttpResponse g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { return new ManagementApiHttpResponse<>( ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, GetGuardianFactorSmsTemplatesResponseContent.class), + responseBodyString, + new TypeReference>() {}), response); } try { @@ -403,6 +460,8 @@ public ManagementApiHttpResponse g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -451,6 +510,15 @@ public ManagementApiHttpResponse s if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -478,6 +546,8 @@ public ManagementApiHttpResponse s Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 9120fdab9..764acf3b2 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 @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.types.SetGuardianFactorSmsTemplatesResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsResponseContent; import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; +import java.util.Optional; public class SmsClient { protected final ClientOptions clientOptions; @@ -131,7 +132,7 @@ public SetGuardianFactorsProviderSmsResponseContent setProvider( *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { + public Optional getTemplates() { return this.rawClient.getTemplates().body(); } @@ -140,7 +141,7 @@ public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { *
Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
      * 
*/ - public GetGuardianFactorSmsTemplatesResponseContent getTemplates(RequestOptions requestOptions) { + public Optional getTemplates(RequestOptions requestOptions) { return this.rawClient.getTemplates(requestOptions).body(); } 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 6033e08a5..382f9b918 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -108,6 +118,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -175,6 +188,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -214,6 +236,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -269,6 +294,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -308,6 +342,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 c14fc3938..12c83aca3 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -91,6 +101,8 @@ public ManagementApiHttpResponse ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -149,6 +161,15 @@ public ManagementApiHttpResponse se if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -176,6 +197,8 @@ public ManagementApiHttpResponse se Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -223,6 +246,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -250,6 +282,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 0ae80d523..b3ade47d4 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 @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorPhoneTemplatesRequestContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b3acce3ec..a790077ed 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 @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorSmsTemplatesRequestContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 e55872ce9..701bd0c9e 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 @@ -214,7 +214,6 @@ public Builder from(CreateGuardianEnrollmentTicketRequestContent other) { } /** - *

user_id for the enrollment ticket

*

user_id for the enrollment ticket

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b20967eb3..bdc5e50a0 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 @@ -97,7 +97,6 @@ public Builder from(SetGuardianFactorRequestContent other) { } /** - *

Whether this factor is enabled (true) or disabled (false).

*

Whether this factor is enabled (true) or disabled (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1dc678acf..57ba56427 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -72,6 +73,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -120,6 +130,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -173,6 +186,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -218,6 +240,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -271,6 +296,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -311,6 +345,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -364,6 +401,15 @@ public CompletableFuture> update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -414,6 +460,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 7a1fddb05..0e75523f1 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -67,6 +68,15 @@ public ManagementApiHttpResponse> get(String id, RequestOpti if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -100,6 +110,8 @@ public ManagementApiHttpResponse> get(String id, RequestOpti Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -145,6 +157,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -175,6 +196,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -219,6 +242,15 @@ public ManagementApiHttpResponse delete(String id, List request, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -246,6 +278,8 @@ public ManagementApiHttpResponse delete(String id, List request, R Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -291,6 +325,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -324,6 +367,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java index 55043ca49..30a460aca 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncErrorsClient.java @@ -6,6 +6,7 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AsyncErrorsClient { @@ -28,14 +29,14 @@ public AsyncRawErrorsClient withRawResponse() { /** * Retrieve error details of a failed job. */ - public CompletableFuture get(String id) { + public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** * Retrieve error details of a failed job. */ - public CompletableFuture get(String id, RequestOptions requestOptions) { + 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/jobs/AsyncRawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java index 83a2e1ab6..46d59bea4 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -16,7 +17,9 @@ import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; +import java.util.Optional; import java.util.concurrent.CompletableFuture; import okhttp3.Call; import okhttp3.Callback; @@ -38,14 +41,14 @@ public AsyncRawErrorsClient(ClientOptions clientOptions) { /** * Retrieve error details of a failed job. */ - public CompletableFuture> get(String id) { + public CompletableFuture>> get(String id) { return get(id, null); } /** * Retrieve error details of a failed job. */ - public CompletableFuture> get( + public CompletableFuture>> get( String id, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -67,7 +70,16 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } - CompletableFuture> future = new CompletableFuture<>(); + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } + CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { @@ -75,7 +87,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { future.complete(new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ErrorsGetResponse.class), + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, new TypeReference>() {}), response)); return; } @@ -114,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 89cd124c5..4cf7e831c 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -91,6 +92,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -135,6 +145,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java index 0f0a1d2d5..753fdfc0b 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersImportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ContentTooLargeError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -98,6 +99,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -152,6 +162,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -177,7 +190,7 @@ public CompletableFuture> future = @@ -234,6 +247,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -259,7 +275,7 @@ public CompletableFuture> future = @@ -316,6 +332,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -352,6 +371,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -406,6 +434,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -442,6 +473,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -496,6 +536,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 28d51b77b..143cb035e 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -78,6 +79,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -122,6 +132,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java index bde7f5fd1..2e0783689 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/ErrorsClient.java @@ -6,6 +6,7 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; +import java.util.Optional; public class ErrorsClient { protected final ClientOptions clientOptions; @@ -27,14 +28,14 @@ public RawErrorsClient withRawResponse() { /** * Retrieve error details of a failed job. */ - public ErrorsGetResponse get(String id) { + public Optional get(String id) { return this.rawClient.get(id).body(); } /** * Retrieve error details of a failed job. */ - public ErrorsGetResponse get(String id, RequestOptions requestOptions) { + public Optional get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } } 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 a56fe5835..66588a2a8 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -16,7 +17,9 @@ import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; +import java.util.Optional; import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; @@ -34,14 +37,14 @@ public RawErrorsClient(ClientOptions clientOptions) { /** * Retrieve error details of a failed job. */ - public ManagementApiHttpResponse get(String id) { + public ManagementApiHttpResponse> get(String id) { return get(id, null); } /** * Retrieve error details of a failed job. */ - public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") @@ -62,12 +65,23 @@ public ManagementApiHttpResponse get(String id, RequestOption if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { return new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ErrorsGetResponse.class), response); + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, new TypeReference>() {}), + response); } try { switch (response.code()) { @@ -93,6 +107,8 @@ public ManagementApiHttpResponse get(String id, RequestOption Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 dfbf7adc3..d6022acec 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -85,6 +86,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -114,6 +124,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 87be71464..de3b10c84 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ContentTooLargeError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -129,6 +139,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -145,7 +157,7 @@ public ManagementApiHttpResponse create(InputS Request.Builder _requestBuilder = new Request.Builder(); _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); - _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); + _requestBuilder.headers(Headers.of(this.clientOptions.headers((RequestOptions) null))); Request okhttpRequest = _requestBuilder.build(); OkHttpClient client = clientOptions.httpClient(); try (Response response = client.newCall(okhttpRequest).execute()) { @@ -183,6 +195,8 @@ public ManagementApiHttpResponse create(InputS Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -200,7 +214,7 @@ public ManagementApiHttpResponse create( Request.Builder _requestBuilder = new Request.Builder(); _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); - _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); + _requestBuilder.headers(Headers.of(this.clientOptions.headers((RequestOptions) null))); Request okhttpRequest = _requestBuilder.build(); OkHttpClient client = clientOptions.httpClient(); try (Response response = client.newCall(okhttpRequest).execute()) { @@ -238,6 +252,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -266,6 +282,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -301,6 +326,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -329,6 +356,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -364,6 +400,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 72fe8976e..be65804a7 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -74,6 +75,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -104,6 +114,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 f37eec352..8aa885e47 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 @@ -171,7 +171,6 @@ public Builder from(CreateImportUsersRequestContent other) { } /** - *

connection_id of the connection to which users will be imported.

*

connection_id of the connection to which users will be imported.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 93bc00616..9857bcf3b 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 @@ -167,7 +167,6 @@ public Builder from(CreateVerificationEmailRequestContent other) { } /** - *

user_id of the user to send the verification email to.

*

user_id of the user to send the verification email to.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java b/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java index 2f9d812bc..6802e5fd7 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java @@ -86,11 +86,6 @@ static final class Deserializer extends StdDeserializer { @java.lang.Override public ErrorsGetResponse deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); - try { - return of(ObjectMappers.JSON_MAPPER.convertValue( - value, new TypeReference>() {})); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("status") && ((Map) value).containsKey("type") @@ -100,6 +95,11 @@ public ErrorsGetResponse deserialize(JsonParser p, DeserializationContext contex } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, new TypeReference>() {})); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } 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 c934e084d..e3eea0c11 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -209,6 +231,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -251,6 +276,15 @@ public CompletableFuture> delete(RequestOptions if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -286,6 +320,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 d22e3d05b..7ccd81f5c 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -265,6 +287,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -307,6 +332,15 @@ public CompletableFuture> rekey(RequestOptions r if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -342,6 +376,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -386,6 +423,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -435,6 +481,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -488,6 +537,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -537,6 +595,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -580,6 +641,15 @@ public CompletableFuture> delete(String kid, Req if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -620,6 +690,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -666,6 +739,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -715,6 +797,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 3ff7dab25..c1ce45223 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -70,6 +71,15 @@ public CompletableFuture>> list(Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -156,6 +169,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -195,6 +217,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -239,6 +264,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -287,6 +321,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -332,6 +369,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -376,6 +422,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 239c5c483..e9c2c4e7c 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get(Reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get(Reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -138,6 +150,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -168,6 +189,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -202,6 +225,15 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -226,6 +258,8 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 4106d5ed5..f5a8d5b47 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -136,6 +146,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -180,6 +192,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -213,6 +234,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -247,6 +270,15 @@ public ManagementApiHttpResponse rekey(RequestOptions requestOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -271,6 +303,8 @@ public ManagementApiHttpResponse rekey(RequestOptions requestOptions) { Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -306,6 +340,15 @@ public ManagementApiHttpResponse get(String kid if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -338,6 +381,8 @@ public ManagementApiHttpResponse get(String kid Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -383,6 +428,15 @@ public ManagementApiHttpResponse import_( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -416,6 +470,8 @@ public ManagementApiHttpResponse import_( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -451,6 +507,15 @@ public ManagementApiHttpResponse delete(String kid, RequestOptions request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -478,6 +543,8 @@ public ManagementApiHttpResponse delete(String kid, RequestOptions request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -516,6 +583,15 @@ public ManagementApiHttpResponse> list(RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -96,6 +106,8 @@ public ManagementApiHttpResponse> list(RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -130,6 +142,15 @@ public ManagementApiHttpResponse rotate(Reques if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -156,6 +177,8 @@ public ManagementApiHttpResponse rotate(Reques Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -191,6 +214,15 @@ public ManagementApiHttpResponse get(String kid, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -223,6 +255,8 @@ public ManagementApiHttpResponse get(String kid, Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -260,6 +294,15 @@ public ManagementApiHttpResponse revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -290,6 +333,8 @@ public ManagementApiHttpResponse revoke( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 7cd8794c7..de4520173 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 @@ -98,7 +98,6 @@ public Builder from(ImportEncryptionKeyRequestContent other) { } /** - *

Base64 encoded ciphertext of key material wrapped by public wrapping key.

*

Base64 encoded ciphertext of key material wrapped by public wrapping key.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 bc9d6bde0..f0980b3de 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.keys.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListEncryptionKeysRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Default value is 50, maximum value is 100. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 08cd75b2e..a6c90c6f4 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -100,6 +101,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -165,6 +175,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -213,6 +226,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -307,6 +332,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -352,6 +386,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java index 6eeb05748..6c7a5e7f3 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -98,6 +99,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -212,6 +225,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -266,6 +288,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -307,6 +332,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -351,6 +385,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -391,6 +428,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -426,6 +472,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -495,6 +544,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -539,6 +597,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 24bda7f45..65e5e1e91 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -111,6 +112,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -232,6 +245,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -286,6 +308,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -335,6 +360,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -384,6 +418,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -433,6 +470,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -482,6 +528,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -528,6 +577,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -568,6 +626,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -649,6 +710,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -683,6 +753,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java index 8fb4ad221..26c7c016a 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawEnabledConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -172,6 +182,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -228,6 +241,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -277,6 +299,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -324,6 +349,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -368,6 +402,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -416,6 +453,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -461,6 +507,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -542,6 +591,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -591,6 +649,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java index cd13af1d4..dc7ac3877 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -100,6 +101,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -164,6 +174,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java index b0e3a02f9..980366366 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawInvitationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -113,6 +114,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -183,6 +193,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -237,6 +250,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -286,6 +308,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -355,6 +380,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -404,6 +438,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -444,6 +481,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -484,6 +530,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 496cc19af..25d7ac152 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -160,6 +161,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -228,6 +238,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -284,6 +297,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -324,6 +346,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -372,6 +397,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -412,6 +446,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 0566aa020..ffac603cc 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -95,6 +96,15 @@ public ManagementApiHttpResponse> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> li Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -178,6 +190,15 @@ public ManagementApiHttpResponse delete(String id, String grantId, Request if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -275,6 +307,8 @@ public ManagementApiHttpResponse delete(String id, String grantId, Request Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java index 8a5cd901b..8e6f82342 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawConnectionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -211,6 +232,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -243,6 +266,15 @@ public ManagementApiHttpResponse ge if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -273,6 +305,8 @@ public ManagementApiHttpResponse ge Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -304,6 +338,15 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -328,6 +371,8 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -389,6 +434,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -419,6 +473,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 feefc9497..55f2daad6 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -105,6 +106,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -149,6 +159,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -195,6 +207,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -379,6 +422,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -416,6 +461,15 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -443,6 +497,8 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -516,6 +572,15 @@ public ManagementApiHttpResponse> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -143,6 +153,8 @@ public ManagementApiHttpResponse> lis Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -191,6 +203,15 @@ public ManagementApiHttpResponse add( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -224,6 +245,8 @@ public ManagementApiHttpResponse add( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -262,6 +285,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -292,6 +324,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -331,6 +365,15 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -361,6 +404,8 @@ public ManagementApiHttpResponse delete(String id, String connectionId, Re Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -434,6 +479,15 @@ public ManagementApiHttpResponse up if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -467,6 +521,8 @@ public ManagementApiHttpResponse up Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java index c53b52479..8592ad247 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -95,6 +96,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -137,6 +147,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 f61b48ecf..503c64a0f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -108,6 +109,15 @@ public ManagementApiHttpResponse> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -154,6 +164,8 @@ public ManagementApiHttpResponse> lis Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -200,6 +212,15 @@ public ManagementApiHttpResponse cr if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -233,6 +254,8 @@ public ManagementApiHttpResponse cr Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -293,6 +316,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -326,6 +358,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -357,6 +391,15 @@ public ManagementApiHttpResponse delete(String id, String invitationId, Re if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -384,6 +427,8 @@ public ManagementApiHttpResponse delete(String id, String invitationId, Re Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 743f0a046..54b71bdff 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -155,6 +156,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -199,6 +209,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -246,6 +258,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -273,6 +294,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -312,6 +335,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -339,6 +371,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java index d701c6cba..362b2ed1b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/groups/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -113,6 +114,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -177,6 +187,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -236,6 +249,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -286,6 +308,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -345,6 +370,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -390,6 +424,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java index 88e90d2df..c9d13fe4b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/groups/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -107,6 +108,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -150,6 +160,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -201,6 +213,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -234,6 +255,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -285,6 +308,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -315,6 +347,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java index aa8749434..39ac468e7 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/groups/types/ListOrganizationGroupRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.groups.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationGroupRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java index d6be7c8b8..acd5491dc 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawEffectiveRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -108,6 +109,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -175,6 +185,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 6ae562203..1d4c6894e 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -116,6 +117,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -184,6 +194,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -245,6 +258,15 @@ public CompletableFuture> assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -290,6 +312,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -351,6 +376,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -391,6 +425,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java index c76b1fe93..ae326a95e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/RawEffectiveRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -156,6 +166,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -209,6 +221,15 @@ public ManagementApiHttpResponse assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -239,6 +260,8 @@ public ManagementApiHttpResponse assign( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -292,6 +315,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -319,6 +351,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java index f1a22faf0..bc2de7367 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -87,6 +88,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -153,6 +163,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java index 6e80b4985..bb573a539 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -126,6 +136,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java index 631eb1b2d..bbb7e8842 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/effectiveroles/sources/types/ListOrganizationMemberRoleSourceGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.members.effectiveroles.sources.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,8 @@ private ListOrganizationMemberRoleSourceGroupsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -56,7 +58,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -67,11 +70,23 @@ public OptionalNullable getTake() { /** * @return The role ID to get group sources for. */ - @JsonIgnore + @JsonProperty("role_id") public String getRoleId() { return roleId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -163,7 +178,6 @@ public Builder from(ListOrganizationMemberRoleSourceGroupsRequestParameters othe } /** - *

The role ID to get group sources for.

*

The role ID to get group sources for.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java index 32f11cc25..6c6431b73 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberEffectiveRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.members.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationMemberEffectiveRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 feabe2eaa..1e4908f3d 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.members.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListOrganizationMemberRolesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java index e8655a44e..a346afaac 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -113,6 +114,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -178,6 +188,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java index e78224119..7d7abc6f4 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -108,6 +109,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -152,6 +162,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java index 7bbf0697e..08a4c07f1 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.roles.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListOrganizationRoleMembersRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getTake() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 2fa7a9dcf..9306ad474 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 @@ -172,7 +172,6 @@ public Builder from(AddOrganizationConnectionRequestContent other) { } /** - *

Single connection ID to add to the organization.

*

Single connection ID to add to the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 008e5fd25..77e662309 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 @@ -99,7 +99,6 @@ public Builder from(AssociateOrganizationClientGrantRequestContent other) { } /** - *

A Client Grant ID to add to the organization.

*

A Client Grant ID to add to the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java index facd18fd8..a5e22831f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationAllConnectionRequestParameters.java @@ -243,7 +243,6 @@ public Builder from(CreateOrganizationAllConnectionRequestParameters other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 24739546a..bd77e6344 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 @@ -144,7 +144,6 @@ public Builder from(CreateOrganizationDiscoveryDomainRequestContent other) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2fa994485..b0a9f33b3 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 @@ -289,7 +289,6 @@ public ClientIdStage invitee(@NotNull OrganizationInvitationInvitee invitee) { } /** - *

Auth0 client ID. Used to resolve the application's login initiation endpoint.

*

Auth0 client ID. Used to resolve the application's login initiation endpoint.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7e130e65b..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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetOrganizationInvitationRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java index 14962022a..9024cb77b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListOrganizationAllConnectionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Filter connections by enabled status. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_enabled") public OptionalNullable getIsEnabled() { if (isEnabled == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIsEnabled() { return isEnabled; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_enabled") + private OptionalNullable _getIsEnabled() { + return isEnabled; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 a05a0e3f0..48a6606ff 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 @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -69,7 +71,8 @@ public Optional> getGrantIds() { /** * @return Optional filter on audience of the client grant. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") public OptionalNullable getAudience() { if (audience == null) { return OptionalNullable.absent(); @@ -80,7 +83,8 @@ public OptionalNullable getAudience() { /** * @return Optional filter on client_id of the client grant. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -91,7 +95,8 @@ public OptionalNullable getClientId() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -102,7 +107,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -113,7 +119,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -121,6 +128,42 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("grant_ids") + private Optional> _getGrantIds() { + return grantIds; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") + private OptionalNullable _getAudience() { + return audience; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 0079d9d99..58a8c0a9e 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListOrganizationConnectionsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 ec9d637d8..8a90b83ff 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationDiscoveryDomainsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java index d4a4aaf00..ca4bb109f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListOrganizationGroupsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 03acfb709..e2bb762e8 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListOrganizationInvitationsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPerPage() { /** * @return When true, return results inside an object that also contains the start and limit. When false (default), a direct array of results is returned. We do not yet support returning the total invitations count. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getIncludeFields() { /** * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getSort() { return sort; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3a743f5c1..88eb0abbf 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.organizations.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListOrganizationMembersRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getTake() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 37ca4bfb7..584b0f6d5 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -74,6 +75,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -122,6 +132,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -180,6 +193,15 @@ public CompletableFuture> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -220,6 +242,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 a97362366..ca39ceb00 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -71,6 +72,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -119,6 +129,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -173,6 +186,15 @@ public CompletableFuture> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -213,6 +235,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 290858a28..6ddaa6d42 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -123,6 +124,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -191,6 +201,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -243,6 +256,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -291,6 +313,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -339,6 +364,15 @@ public CompletableFuture> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -391,6 +425,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -466,6 +503,15 @@ public CompletableFuture> u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -514,6 +560,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 3faaa1854..cb5570002 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -102,6 +112,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -152,6 +164,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -179,6 +200,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 a085a1fe4..cc66afc5f 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -66,6 +67,15 @@ public ManagementApiHttpResponse> get(PartialGroupsEnum prom if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -99,6 +109,8 @@ public ManagementApiHttpResponse> get(PartialGroupsEnum prom Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -144,6 +156,15 @@ public ManagementApiHttpResponse set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -171,6 +192,8 @@ public ManagementApiHttpResponse set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 e1efb1c0c..3cd562281 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -118,6 +119,15 @@ public ManagementApiHttpResponse bulkUpdate( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -237,6 +258,8 @@ public ManagementApiHttpResponse bulkUpdate( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -277,6 +300,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -312,6 +344,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -379,6 +413,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -411,6 +454,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 6c9d1de51..2ca885316 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 @@ -3,14 +3,15 @@ */ package com.auth0.client.mgmt.prompts.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.AculRenderingModeEnum; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -65,7 +66,8 @@ private ListAculsRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -76,7 +78,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (default: true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -87,7 +90,8 @@ public OptionalNullable getIncludeFields() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -98,7 +102,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Maximum value is 100, default value is 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -109,7 +114,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total configuration count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -120,7 +126,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Name of the prompt to filter by */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("prompt") public OptionalNullable getPrompt() { if (prompt == null) { return OptionalNullable.absent(); @@ -131,7 +138,8 @@ public OptionalNullable getPrompt() { /** * @return Name of the screen to filter by */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("screen") public OptionalNullable getScreen() { if (screen == null) { return OptionalNullable.absent(); @@ -142,7 +150,8 @@ public OptionalNullable getScreen() { /** * @return Rendering mode to filter by */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("rendering_mode") public OptionalNullable getRenderingMode() { if (renderingMode == null) { return OptionalNullable.absent(); @@ -150,6 +159,54 @@ public OptionalNullable getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("prompt") + private OptionalNullable _getPrompt() { + return prompt; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("screen") + private OptionalNullable _getScreen() { + return screen; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("rendering_mode") + private OptionalNullable _getRenderingMode() { + return renderingMode; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3855eaa49..374dcfd79 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -214,6 +236,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java index 5c33d7633..2d68a2bf0 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/RawSettingsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -94,6 +104,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -138,6 +150,15 @@ public ManagementApiHttpResponse u if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -171,6 +192,8 @@ public ManagementApiHttpResponse u Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 4036e9535..7a83fcb11 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 @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -113,6 +123,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -165,6 +178,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -215,6 +237,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java index 70f832c46..9f00e2bda 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/RawNewDeviceClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -65,6 +66,15 @@ public ManagementApiHttpResponseLength of time to remember devices for, in days.

*

Length of time to remember devices for, in days.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 bc1340742..31bbcd62a 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 @@ -98,7 +98,6 @@ public Builder from(UpdateRiskAssessmentsSettingsRequestContent other) { } /** - *

Whether or not risk assessment is enabled.

*

Whether or not risk assessment is enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java index e7fc85e14..d1c464cbb 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawGroupsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -162,6 +172,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -216,6 +229,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -261,6 +283,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -315,6 +340,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 b867a4268..35391d583 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -100,6 +101,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -169,6 +179,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -222,6 +235,15 @@ public CompletableFuture> add( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -321,6 +346,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -361,6 +395,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 35afcf25f..e0dec3066 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -151,6 +152,15 @@ public CompletableFuture> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -215,6 +225,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -270,6 +283,15 @@ public CompletableFuture> assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -315,6 +337,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java index 970d20bca..6466ee8fd 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawGroupsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -179,6 +191,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -209,6 +230,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -254,6 +277,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -284,6 +316,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 ce99d607a..dee95f632 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse> if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse add( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -213,6 +234,8 @@ public ManagementApiHttpResponse add( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +281,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -285,6 +317,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 035e1f304..fa17f41a6 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -145,6 +146,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -187,6 +197,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -234,6 +246,15 @@ public ManagementApiHttpResponse assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -264,6 +285,8 @@ public ManagementApiHttpResponse assign( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java index 650b3c2f9..f6160216d 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleGroupsParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.roles.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListRoleGroupsParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 d028f0972..2215e7081 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.roles.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListRolePermissionsRequestParameters( /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 321a175d1..d24737e83 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.roles.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListRoleUsersRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 96af90c77..cca213799 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -77,6 +78,15 @@ public CompletableFuture>> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -120,6 +130,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -183,6 +196,15 @@ public CompletableFuture>> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -226,6 +248,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 a0d893d51..47ff01a60 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -146,6 +156,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -195,6 +208,15 @@ public CompletableFuture> revoke( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -230,6 +252,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 b593085d6..689a57fef 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -103,6 +113,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -158,6 +170,15 @@ public ManagementApiHttpResponse> set( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -188,6 +209,8 @@ public ManagementApiHttpResponse> set( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 5711d6c0b..806823e16 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -92,6 +93,15 @@ public ManagementApiHttpResponse revoke(String profileId, String id, Reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -189,6 +210,8 @@ public ManagementApiHttpResponse revoke(String profileId, String id, Reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 bf7ba8354..eb8683cda 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -94,6 +95,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -138,6 +148,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -205,6 +218,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -249,6 +271,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 8731df6b0..b4cd21985 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -88,6 +89,15 @@ public ManagementApiHttpResponse get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -117,6 +127,8 @@ public ManagementApiHttpResponse get( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -175,6 +187,15 @@ public ManagementApiHttpResponse update( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -205,6 +226,8 @@ public ManagementApiHttpResponse update( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 fad43e8f6..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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.tenants.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetTenantSettingsRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3a515f442..6a1200ed0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java @@ -119,7 +119,6 @@ public Builder from(ActionModuleDependencyRequest other) { } /** - *

The name of the npm dependency.

*

The name of the npm dependency.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public VersionStage name(@NotNull String name) { } /** - *

The version of the npm dependency.

*

The version of the npm dependency.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 cbb2155b5..af5fefaf0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java @@ -119,7 +119,6 @@ public Builder from(ActionModuleSecretRequest other) { } /** - *

The name of the secret.

*

The name of the secret.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public ValueStage name(@NotNull String name) { } /** - *

The value of the secret.

*

The value of the secret.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a6ec9ab28..eb0b95532 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java @@ -121,7 +121,6 @@ public VersionStage id(@NotNull ActionTriggerTypeEnum id) { } /** - *

The version of a trigger. v1, v2, etc.

*

The version of a trigger. v1, v2, etc.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1c87c51f7..58604f8af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java @@ -98,7 +98,6 @@ public Builder from(AculClientFilterById other) { } /** - *

Client ID

*

Client ID

* @return Reference to {@code this} so that method calls can be chained together. */ 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 24a4981a4..4deba79da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java @@ -98,7 +98,6 @@ public Builder from(AculDomainFilterById other) { } /** - *

Domain ID

*

Domain ID

* @return Reference to {@code this} so that method calls can be chained together. */ 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 99799dbb0..7f94629d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java @@ -98,7 +98,6 @@ public Builder from(AculOrganizationFilterById other) { } /** - *

Organization ID

*

Organization ID

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d3a28c44c..57cb99ebd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java @@ -98,7 +98,6 @@ public Builder from(AttackProtectionCaptchaAuthChallengeRequest other) { } /** - *

Whether the auth challenge should fail open.

*

Whether the auth challenge should fail open.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1182984b7..57a3f0d99 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java @@ -195,7 +195,6 @@ public Builder from(AttackProtectionUpdateCaptchaArkose other) { } /** - *

The site key for the Arkose captcha provider.

*

The site key for the Arkose captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -207,7 +206,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the Arkose captcha provider.

*

The secret key for the Arkose captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7d7fd0772..ad51758ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java @@ -121,7 +121,6 @@ public Builder from(AttackProtectionUpdateCaptchaFriendlyCaptcha other) { } /** - *

The site key for the Friendly Captcha provider.

*

The site key for the Friendly Captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the Friendly Captcha provider.

*

The secret key for the Friendly Captcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 6861b8d97..5234ffdb2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java @@ -121,7 +121,6 @@ public Builder from(AttackProtectionUpdateCaptchaHcaptcha other) { } /** - *

The site key for the hCaptcha provider.

*

The site key for the hCaptcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the hCaptcha provider.

*

The secret key for the hCaptcha provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 474b142cf..a3470f32c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java @@ -142,7 +142,6 @@ public Builder from(AttackProtectionUpdateCaptchaRecaptchaEnterprise other) { } /** - *

The site key for the reCAPTCHA Enterprise provider.

*

The site key for the reCAPTCHA Enterprise provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -154,7 +153,6 @@ public ApiKeyStage siteKey(@NotNull String siteKey) { } /** - *

The API key for the reCAPTCHA Enterprise provider.

*

The API key for the reCAPTCHA Enterprise provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -166,7 +164,6 @@ public ProjectIdStage apiKey(@NotNull String apiKey) { } /** - *

The project ID for the reCAPTCHA Enterprise provider.

*

The project ID for the reCAPTCHA Enterprise provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d440676bb..59ff4d02a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java @@ -121,7 +121,6 @@ public Builder from(AttackProtectionUpdateCaptchaRecaptchaV2 other) { } /** - *

The site key for the reCAPTCHA v2 provider.

*

The site key for the reCAPTCHA v2 provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public SecretStage siteKey(@NotNull String siteKey) { } /** - *

The secret key for the reCAPTCHA v2 provider.

*

The secret key for the reCAPTCHA v2 provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9fc5795e3..a24458a22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java @@ -291,7 +291,6 @@ public Builder from(BrandingThemeBorders other) { } /** - *

Button border radius

*

Button border radius

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -303,7 +302,6 @@ public ButtonBorderWeightStage buttonBorderRadius(double buttonBorderRadius) { } /** - *

Button border weight

*

Button border weight

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -322,7 +320,6 @@ public InputBorderRadiusStage buttonsStyle(@NotNull BrandingThemeBordersButtonsS } /** - *

Input border radius

*

Input border radius

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -334,7 +331,6 @@ public InputBorderWeightStage inputBorderRadius(double inputBorderRadius) { } /** - *

Input border weight

*

Input border weight

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -353,7 +349,6 @@ public ShowWidgetShadowStage inputsStyle(@NotNull BrandingThemeBordersInputsStyl } /** - *

Show widget shadow

*

Show widget shadow

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -365,7 +360,6 @@ public WidgetBorderWeightStage showWidgetShadow(boolean showWidgetShadow) { } /** - *

Widget border weight

*

Widget border weight

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -377,7 +371,6 @@ public WidgetCornerRadiusStage widgetBorderWeight(double widgetBorderWeight) { } /** - *

Widget corner radius

*

Widget corner radius

* @return Reference to {@code this} so that method calls can be chained together. */ 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 5c0435edb..d0e8fd3e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java @@ -570,7 +570,6 @@ public Builder from(BrandingThemeColors other) { } /** - *

Body text

*

Body text

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -582,7 +581,6 @@ public ErrorStage bodyText(@NotNull String bodyText) { } /** - *

Error

*

Error

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -594,7 +592,6 @@ public HeaderStage error(@NotNull String error) { } /** - *

Header

*

Header

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -606,7 +603,6 @@ public IconsStage header(@NotNull String header) { } /** - *

Icons

*

Icons

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -618,7 +614,6 @@ public InputBackgroundStage icons(@NotNull String icons) { } /** - *

Input background

*

Input background

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -630,7 +625,6 @@ public InputBorderStage inputBackground(@NotNull String inputBackground) { } /** - *

Input border

*

Input border

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -642,7 +636,6 @@ public InputFilledTextStage inputBorder(@NotNull String inputBorder) { } /** - *

Input filled text

*

Input filled text

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -654,7 +647,6 @@ public InputLabelsPlaceholdersStage inputFilledText(@NotNull String inputFilledT } /** - *

Input labels & placeholders

*

Input labels & placeholders

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -667,7 +659,6 @@ public LinksFocusedComponentsStage inputLabelsPlaceholders(@NotNull String input } /** - *

Links & focused components

*

Links & focused components

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -680,7 +671,6 @@ public PrimaryButtonStage linksFocusedComponents(@NotNull String linksFocusedCom } /** - *

Primary button

*

Primary button

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -692,7 +682,6 @@ public PrimaryButtonLabelStage primaryButton(@NotNull String primaryButton) { } /** - *

Primary button label

*

Primary button label

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -704,7 +693,6 @@ public SecondaryButtonBorderStage primaryButtonLabel(@NotNull String primaryButt } /** - *

Secondary button border

*

Secondary button border

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -717,7 +705,6 @@ public SecondaryButtonLabelStage secondaryButtonBorder(@NotNull String secondary } /** - *

Secondary button label

*

Secondary button label

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -730,7 +717,6 @@ public SuccessStage secondaryButtonLabel(@NotNull String secondaryButtonLabel) { } /** - *

Success

*

Success

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -742,7 +728,6 @@ public WidgetBackgroundStage success(@NotNull String success) { } /** - *

Widget background

*

Widget background

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -754,7 +739,6 @@ public WidgetBorderStage widgetBackground(@NotNull String widgetBackground) { } /** - *

Widget border

*

Widget border

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7c99b687c..6e9bb9249 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontBodyText other) { } /** - *

Body text bold

*

Body text bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Body text size

*

Body text size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 48db81faa..f8cac7e0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontButtonsText other) { } /** - *

Buttons text bold

*

Buttons text bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Buttons text size

*

Buttons text size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7e806c532..79a3ad5a8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontInputLabels other) { } /** - *

Input Labels bold

*

Input Labels bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Input Labels size

*

Input Labels size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3e627361c..ddab6cf91 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontLinks other) { } /** - *

Links bold

*

Links bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Links size

*

Links size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f1542e138..395d65260 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontSubtitle other) { } /** - *

Subtitle bold

*

Subtitle bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Subtitle size

*

Subtitle size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 095582ee1..dfd809a53 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java @@ -118,7 +118,6 @@ public Builder from(BrandingThemeFontTitle other) { } /** - *

Title bold

*

Title bold

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -130,7 +129,6 @@ public SizeStage bold(boolean bold) { } /** - *

Title size

*

Title size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d04e9b325..f9cca67fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java @@ -275,7 +275,6 @@ public FontUrlStage buttonsText(@NotNull BrandingThemeFontButtonsText buttonsTex } /** - *

Font URL

*

Font URL

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public ReferenceTextSizeStage linksStyle(@NotNull BrandingThemeFontLinksStyleEnu } /** - *

Reference text size

*

Reference text size

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3571687ae..d8c1706c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java @@ -141,7 +141,6 @@ public Builder from(BrandingThemePageBackground other) { } /** - *

Background color

*

Background color

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -153,7 +152,6 @@ public BackgroundImageUrlStage backgroundColor(@NotNull String backgroundColor) } /** - *

Background image url

*

Background image url

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3a8f15623..ae26522c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java @@ -190,7 +190,6 @@ public LogoHeightStage headerTextAlignment( } /** - *

Logo height

*

Logo height

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -209,7 +208,6 @@ public LogoUrlStage logoPosition(@NotNull BrandingThemeWidgetLogoPositionEnum lo } /** - *

Logo url

*

Logo url

* @return Reference to {@code this} so that method calls can be chained together. */ 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 e2290af69..0a4853d67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java @@ -142,7 +142,6 @@ public Builder from(ChangePasswordTicketIdentity other) { } /** - *

user_id of the identity.

*

user_id of the identity.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 cff274020..628d8c8b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java @@ -99,7 +99,6 @@ public Builder from(ChangePasswordTicketResponseContent other) { } /** - *

URL representing the ticket.

*

URL representing the ticket.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java b/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java index 073b89f90..c27f98c65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java @@ -141,7 +141,6 @@ public Builder from(CimdMappedPrivateKeyJwtCredential other) { } /** - *

Type of credential (e.g., public_key)

*

Type of credential (e.g., public_key)

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -153,7 +152,6 @@ public KidStage credentialType(@NotNull String credentialType) { } /** - *

Key identifier from JWKS or calculated thumbprint

*

Key identifier from JWKS or calculated thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -165,7 +163,6 @@ public AlgStage kid(@NotNull String kid) { } /** - *

Algorithm (e.g., RS256, RS384, PS256)

*

Algorithm (e.g., RS256, RS384, PS256)

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java b/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java index c3bfaf3fc..b38ba3128 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java +++ b/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java @@ -147,7 +147,6 @@ public Builder from(CimdValidationResult other) { } /** - *

Whether the metadata document passed validation

*

Whether the metadata document passed validation

* @return Reference to {@code this} so that method calls can be chained together. */ 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 cf3a8a9ff..6bad2c438 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java @@ -194,7 +194,6 @@ public Builder from(ClientAddonLayer other) { } /** - *

Provider ID of your Layer account

*

Provider ID of your Layer account

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +205,6 @@ public KeyIdStage providerId(@NotNull String providerId) { } /** - *

Authentication Key identifier used to sign the Layer token.

*

Authentication Key identifier used to sign the Layer token.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -218,7 +216,6 @@ public PrivateKeyStage keyId(@NotNull String keyId) { } /** - *

Private key for signing the Layer token.

*

Private key for signing the Layer token.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7cc03c9c2..3494015ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java @@ -98,7 +98,6 @@ public Builder from(ClientAddonMscrm other) { } /** - *

Microsoft Dynamics CRM application URL.

*

Microsoft Dynamics CRM application URL.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9e3b5c231..7f50df6d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java @@ -98,7 +98,6 @@ public Builder from(ClientAddonRms other) { } /** - *

URL of your Rights Management Server. It can be internal or external, but users will have to be able to reach it.

*

URL of your Rights Management Server. It can be internal or external, but users will have to be able to reach it.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 90b340c33..f688eb549 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java @@ -98,7 +98,6 @@ public Builder from(ClientAddonSlack other) { } /** - *

Slack team name.

*

Slack team name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 5cd722c89..35d33426b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java @@ -127,7 +127,6 @@ public Builder from(ClientDefaultOrganization other) { } /** - *

The default Organization ID to be used

*

The default Organization ID to be used

* @return Reference to {@code this} so that method calls can be chained together. */ 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 27f41220a..641092b28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java @@ -124,7 +124,6 @@ public Builder from(ClientRefreshTokenPolicy other) { } /** - *

The identifier of the resource server to which the Multi Resource Refresh Token Policy applies

*

The identifier of the resource server to which the Multi Resource Refresh Token Policy applies

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java index cd0c1ed04..b76699065 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferDelegationDeviceBindingEnum.java @@ -7,9 +7,6 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class ClientSessionTransferDelegationDeviceBindingEnum { - public static final ClientSessionTransferDelegationDeviceBindingEnum ASN = - new ClientSessionTransferDelegationDeviceBindingEnum(Value.ASN, "asn"); - public static final ClientSessionTransferDelegationDeviceBindingEnum IP = new ClientSessionTransferDelegationDeviceBindingEnum(Value.IP, "ip"); @@ -46,8 +43,6 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case ASN: - return visitor.visitAsn(); case IP: return visitor.visitIp(); case UNKNOWN: @@ -59,8 +54,6 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static ClientSessionTransferDelegationDeviceBindingEnum valueOf(String value) { switch (value) { - case "asn": - return ASN; case "ip": return IP; default: @@ -71,16 +64,12 @@ public static ClientSessionTransferDelegationDeviceBindingEnum valueOf(String va public enum Value { IP, - ASN, - UNKNOWN } public interface Visitor { T visitIp(); - T visitAsn(); - T visitUnknown(String unknownType); } } 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 dc0dbf84e..1336f4602 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java @@ -298,7 +298,6 @@ public Builder from(ConnectedAccount other) { } /** - *

The unique identifier for the connected account.

*

The unique identifier for the connected account.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -310,7 +309,6 @@ public ConnectionStage id(@NotNull String id) { } /** - *

The name of the connection associated with the account.

*

The name of the connection associated with the account.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -322,7 +320,6 @@ public ConnectionIdStage connection(@NotNull String connection) { } /** - *

The unique identifier of the connection associated with the account.

*

The unique identifier of the connection associated with the account.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -334,7 +331,6 @@ public StrategyStage connectionId(@NotNull String connectionId) { } /** - *

The authentication strategy used by the connection.

*

The authentication strategy used by the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -353,7 +349,6 @@ public CreatedAtStage accessType(@NotNull ConnectedAccountAccessTypeEnum accessT } /** - *

ISO 8601 timestamp when the connected account was created.

*

ISO 8601 timestamp when the connected account was created.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9cbf21b74..f94a80934 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java @@ -98,7 +98,6 @@ public Builder from(ConnectionEnabledClient other) { } /** - *

The client id

*

The client id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java deleted file mode 100644 index 86129d54a..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java +++ /dev/null @@ -1,113 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = ConnectionFederatedConnectionsAccessTokens.Builder.class) -public final class ConnectionFederatedConnectionsAccessTokens { - private final Optional active; - - private final Map additionalProperties; - - private ConnectionFederatedConnectionsAccessTokens( - Optional active, Map additionalProperties) { - this.active = active; - this.additionalProperties = additionalProperties; - } - - /** - * @return Enables refresh tokens and access tokens collection for federated connections - */ - @JsonProperty("active") - public Optional getActive() { - return active; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionFederatedConnectionsAccessTokens - && equalTo((ConnectionFederatedConnectionsAccessTokens) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionFederatedConnectionsAccessTokens other) { - return active.equals(other.active); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash(this.active); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static Builder builder() { - return new Builder(); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional active = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(ConnectionFederatedConnectionsAccessTokens other) { - active(other.getActive()); - return this; - } - - /** - *

Enables refresh tokens and access tokens collection for federated connections

- */ - @JsonSetter(value = "active", nulls = Nulls.SKIP) - public Builder active(Optional active) { - this.active = active; - return this; - } - - public Builder active(Boolean active) { - this.active = Optional.ofNullable(active); - return this; - } - - 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/ConnectionForOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java index 74b134107..3f07f74de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java @@ -171,7 +171,6 @@ public Builder from(ConnectionForOrganization other) { } /** - *

ID of the connection.

*

ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 801f97994..2bdea79b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java @@ -194,7 +194,6 @@ public Builder from(ConnectionGatewayAuthentication other) { } /** - *

The Authorization header type.

*

The Authorization header type.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +205,6 @@ public AudienceStage method(@NotNull String method) { } /** - *

The audience to be added to the JWT payload.

*

The audience to be added to the JWT payload.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -218,7 +216,6 @@ public SecretStage audience(@NotNull String audience) { } /** - *

The secret to be used for signing tokens.

*

The secret to be used for signing tokens.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 58ba3dbe8..564ec3716 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java @@ -191,7 +191,6 @@ public SecretStage method(@NotNull String method) { } /** - *

The secret used to sign the JSON Web Token sent to the SMS gateway

*

The secret used to sign the JSON Web Token sent to the SMS gateway

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7752e1ce2..6ad8e7aea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java @@ -355,7 +355,6 @@ public Builder from(ConnectionKey other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +366,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +377,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -391,7 +388,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c1ad8468c..774a189ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java @@ -129,8 +129,6 @@ public final class ConnectionOptionsAzureAd implements IConnectionOptionsCommon private final Optional extUserId; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional granted; private final Optional iconUrl; @@ -217,7 +215,6 @@ private ConnectionOptionsAzureAd( Optional extUpn, Optional extUsageLocation, Optional extUserId, - OptionalNullable federatedConnectionsAccessTokens, Optional granted, Optional iconUrl, Optional identityApi, @@ -286,7 +283,6 @@ private ConnectionOptionsAzureAd( this.extUpn = extUpn; this.extUsageLocation = extUsageLocation; this.extUserId = extUserId; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.granted = granted; this.iconUrl = iconUrl; this.identityApi = identityApi; @@ -689,15 +685,6 @@ public Optional getExtUserId() { return extUserId; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - /** * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. */ @@ -783,12 +770,6 @@ public Optional getWaadProtocol() { return waadProtocol; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("upstream_params") private OptionalNullable>> @@ -860,7 +841,6 @@ private boolean equalTo(ConnectionOptionsAzureAd other) { && extUpn.equals(other.extUpn) && extUsageLocation.equals(other.extUsageLocation) && extUserId.equals(other.extUserId) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && granted.equals(other.granted) && iconUrl.equals(other.iconUrl) && identityApi.equals(other.identityApi) @@ -933,7 +913,6 @@ public int hashCode() { this.extUpn, this.extUsageLocation, this.extUserId, - this.federatedConnectionsAccessTokens, this.granted, this.iconUrl, this.identityApi, @@ -1300,20 +1279,6 @@ public interface _FinalStage { _FinalStage extUserId(Boolean extUserId); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - /** *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

*/ @@ -1431,9 +1396,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional granted = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional extUserId = Optional.empty(); private Optional extUsageLocation = Optional.empty(); @@ -1595,7 +1557,6 @@ public Builder from(ConnectionOptionsAzureAd other) { extUpn(other.getExtUpn()); extUsageLocation(other.getExtUsageLocation()); extUserId(other.getExtUserId()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); granted(other.getGranted()); iconUrl(other.getIconUrl()); identityApi(other.getIdentityApi()); @@ -1862,47 +1823,6 @@ public _FinalStage granted(Optional granted) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - /** *

When false, prevents storing an alternative user ID. When true (default), this user ID is persisted in the user profile.

* @return Reference to {@code this} so that method calls can be chained together. @@ -2908,7 +2828,6 @@ public ConnectionOptionsAzureAd build() { extUpn, extUsageLocation, extUserId, - federatedConnectionsAccessTokens, granted, iconUrl, identityApi, 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 bb79a4a44..80ab6a58b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -37,8 +37,6 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -81,7 +79,6 @@ private ConnectionOptionsCommonOidc( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, - OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, @@ -105,7 +102,6 @@ private ConnectionOptionsCommonOidc( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -161,16 +157,6 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - @java.lang.Override - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -283,12 +269,6 @@ public Optional getUserinfoEndpoint() { return userinfoEndpoint; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -332,7 +312,6 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -360,7 +339,6 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, - this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, @@ -421,20 +399,6 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -576,9 +540,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -602,7 +563,6 @@ public Builder from(ConnectionOptionsCommonOidc other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -948,47 +908,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1063,7 +982,6 @@ public ConnectionOptionsCommonOidc build() { connectionSettings, domainAliases, dpopSigningAlg, - federatedConnectionsAccessTokens, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, 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 7082b035e..50f1d4ad4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java @@ -227,7 +227,6 @@ public NameStage email(@NotNull ConnectionEmailEmail email) { } /** - *

Connection name

*

Connection name

* @return Reference to {@code this} so that method calls can be chained together. */ 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 63abb2625..6406e4c65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java @@ -60,8 +60,6 @@ public final class ConnectionOptionsGoogleApps implements IConnectionOptionsComm private final Optional extIsSuspended; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional handleLoginFromSocial; private final Optional iconUrl; @@ -99,7 +97,6 @@ private ConnectionOptionsGoogleApps( Optional extGroupsExtended, Optional extIsAdmin, Optional extIsSuspended, - OptionalNullable federatedConnectionsAccessTokens, Optional handleLoginFromSocial, Optional iconUrl, Optional mapUserIdToId, @@ -126,7 +123,6 @@ private ConnectionOptionsGoogleApps( this.extGroupsExtended = extGroupsExtended; this.extIsAdmin = extIsAdmin; this.extIsSuspended = extIsSuspended; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.handleLoginFromSocial = handleLoginFromSocial; this.iconUrl = iconUrl; this.mapUserIdToId = mapUserIdToId; @@ -233,15 +229,6 @@ public Optional getExtIsSuspended() { return extIsSuspended; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("handle_login_from_social") public Optional getHandleLoginFromSocial() { return handleLoginFromSocial; @@ -292,12 +279,6 @@ public OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("upstream_params") private OptionalNullable>> @@ -334,7 +315,6 @@ private boolean equalTo(ConnectionOptionsGoogleApps other) { && extGroupsExtended.equals(other.extGroupsExtended) && extIsAdmin.equals(other.extIsAdmin) && extIsSuspended.equals(other.extIsSuspended) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && handleLoginFromSocial.equals(other.handleLoginFromSocial) && iconUrl.equals(other.iconUrl) && mapUserIdToId.equals(other.mapUserIdToId) @@ -365,7 +345,6 @@ public int hashCode() { this.extGroupsExtended, this.extIsAdmin, this.extIsSuspended, - this.federatedConnectionsAccessTokens, this.handleLoginFromSocial, this.iconUrl, this.mapUserIdToId, @@ -471,20 +450,6 @@ public interface _FinalStage { _FinalStage extIsSuspended(Boolean extIsSuspended); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); @@ -557,9 +522,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional handleLoginFromSocial = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional extIsSuspended = Optional.empty(); private Optional extIsAdmin = Optional.empty(); @@ -616,7 +578,6 @@ public Builder from(ConnectionOptionsGoogleApps other) { extGroupsExtended(other.getExtGroupsExtended()); extIsAdmin(other.getExtIsAdmin()); extIsSuspended(other.getExtIsSuspended()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); handleLoginFromSocial(other.getHandleLoginFromSocial()); iconUrl(other.getIconUrl()); mapUserIdToId(other.getMapUserIdToId()); @@ -783,47 +744,6 @@ public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage extIsSuspended(Boolean extIsSuspended) { this.extIsSuspended = Optional.ofNullable(extIsSuspended); @@ -1073,7 +993,6 @@ public ConnectionOptionsGoogleApps build() { extGroupsExtended, extIsAdmin, extIsSuspended, - federatedConnectionsAccessTokens, handleLoginFromSocial, iconUrl, mapUserIdToId, 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 3997e3217..bd1a13fff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -37,8 +37,6 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -89,7 +87,6 @@ private ConnectionOptionsOidc( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, - OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, @@ -117,7 +114,6 @@ private ConnectionOptionsOidc( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -177,16 +173,6 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - @java.lang.Override - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -320,12 +306,6 @@ public Optional getType() { return type; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -369,7 +349,6 @@ private boolean equalTo(ConnectionOptionsOidc other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -401,7 +380,6 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, - this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, @@ -466,20 +444,6 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -645,9 +609,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -671,7 +632,6 @@ public Builder from(ConnectionOptionsOidc other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1073,47 +1033,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1188,7 +1107,6 @@ public ConnectionOptionsOidc build() { connectionSettings, domainAliases, dpopSigningAlg, - federatedConnectionsAccessTokens, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, 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 41c7dace9..06495614e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -39,8 +39,6 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional iconUrl; private final Optional idTokenSessionExpirySupported; @@ -90,7 +88,6 @@ private ConnectionOptionsOkta( Optional connectionSettings, Optional> domainAliases, Optional dpopSigningAlg, - OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, Optional idTokenSessionExpirySupported, OptionalNullable> idTokenSignedResponseAlgs, @@ -118,7 +115,6 @@ private ConnectionOptionsOkta( this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; this.dpopSigningAlg = dpopSigningAlg; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -183,16 +179,6 @@ public Optional getDpopSigningAlg() { return dpopSigningAlg; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - @java.lang.Override - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -320,12 +306,6 @@ public Optional getType() { return type; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -370,7 +350,6 @@ private boolean equalTo(ConnectionOptionsOkta other) { && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) && dpopSigningAlg.equals(other.dpopSigningAlg) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -402,7 +381,6 @@ public int hashCode() { this.connectionSettings, this.domainAliases, this.dpopSigningAlg, - this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSessionExpirySupported, this.idTokenSignedResponseAlgs, @@ -470,20 +448,6 @@ public interface _FinalStage { _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens); - - _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -643,9 +607,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); private Optional> domainAliases = Optional.empty(); @@ -672,7 +633,6 @@ public Builder from(ConnectionOptionsOkta other) { connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); dpopSigningAlg(other.getDpopSigningAlg()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1060,47 +1020,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - @java.lang.Override - public _FinalStage federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - @java.lang.Override - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public _FinalStage federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - @java.lang.Override public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); @@ -1189,7 +1108,6 @@ public ConnectionOptionsOkta build() { connectionSettings, domainAliases, dpopSigningAlg, - federatedConnectionsAccessTokens, iconUrl, idTokenSessionExpirySupported, idTokenSignedResponseAlgs, 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 dbd3fd445..496467447 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -83,8 +83,6 @@ public final class ConnectionPropertiesOptions { private final OptionalNullable gatewayAuthentication; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional passwordOptions; private final Optional assertionDecryptionSettings; @@ -137,7 +135,6 @@ private ConnectionPropertiesOptions( OptionalNullable>> upstreamParams, Optional setUserRootAttributes, OptionalNullable gatewayAuthentication, - OptionalNullable federatedConnectionsAccessTokens, Optional passwordOptions, Optional assertionDecryptionSettings, OptionalNullable> idTokenSignedResponseAlgs, @@ -178,7 +175,6 @@ private ConnectionPropertiesOptions( this.upstreamParams = upstreamParams; this.setUserRootAttributes = setUserRootAttributes; this.gatewayAuthentication = gatewayAuthentication; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.passwordOptions = passwordOptions; this.assertionDecryptionSettings = assertionDecryptionSettings; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -403,15 +399,6 @@ public OptionalNullable getGatewayAuthenticatio return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("password_options") public Optional getPasswordOptions() { return passwordOptions; @@ -555,12 +542,6 @@ private OptionalNullable _getGatewayAuthenticat return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -632,7 +613,6 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && upstreamParams.equals(other.upstreamParams) && setUserRootAttributes.equals(other.setUserRootAttributes) && gatewayAuthentication.equals(other.gatewayAuthentication) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && passwordOptions.equals(other.passwordOptions) && assertionDecryptionSettings.equals(other.assertionDecryptionSettings) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -677,7 +657,6 @@ public int hashCode() { this.upstreamParams, this.setUserRootAttributes, this.gatewayAuthentication, - this.federatedConnectionsAccessTokens, this.passwordOptions, this.assertionDecryptionSettings, this.idTokenSignedResponseAlgs, @@ -762,9 +741,6 @@ public static final class Builder { private OptionalNullable gatewayAuthentication = OptionalNullable.absent(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional passwordOptions = Optional.empty(); private Optional assertionDecryptionSettings = Optional.empty(); @@ -823,7 +799,6 @@ public Builder from(ConnectionPropertiesOptions other) { upstreamParams(other.getUpstreamParams()); setUserRootAttributes(other.getSetUserRootAttributes()); gatewayAuthentication(other.getGatewayAuthentication()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); passwordOptions(other.getPasswordOptions()); assertionDecryptionSettings(other.getAssertionDecryptionSettings()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1437,43 +1412,6 @@ public Builder gatewayAuthentication( return this; } - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public Builder federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - - public Builder federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - public Builder federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - public Builder federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - @JsonSetter(value = "password_options", nulls = Nulls.SKIP) public Builder passwordOptions(Optional passwordOptions) { this.passwordOptions = passwordOptions; @@ -1731,7 +1669,6 @@ public ConnectionPropertiesOptions build() { upstreamParams, setUserRootAttributes, gatewayAuthentication, - federatedConnectionsAccessTokens, passwordOptions, assertionDecryptionSettings, idTokenSignedResponseAlgs, 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 75994ec6a..5c7f8161e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java @@ -275,7 +275,6 @@ public Builder from(CreateActionRequestContent other) { } /** - *

The name of an action.

*

The name of an action.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9f71be384..6b67cf5e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java @@ -238,7 +238,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -264,7 +263,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 103d74606..b52aade23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java @@ -278,7 +278,6 @@ public Builder from(CreateClientGrantRequestContent other) { } /** - *

The audience (API identifier) of this client grant

*

The audience (API identifier) of this client grant

* @return Reference to {@code this} so that method calls can be chained together. */ 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 196dbebd5..98f40f197 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -1348,7 +1348,6 @@ public Builder from(CreateClientRequestContent other) { } /** - *

Name of this client (min length: 1 character, does not allow < or >).

*

Name of this client (min length: 1 character, does not allow < or >).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7957af75b..b841315a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -333,7 +333,6 @@ public Builder from(CreateConnectionRequestContent other) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7c33e18da..dd3f24f72 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java @@ -225,7 +225,6 @@ public Builder from(CreateCustomDomainRequestContent other) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 56378f8d9..0beb4a797 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java @@ -361,7 +361,6 @@ public Builder from(CreateCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +372,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +383,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9538773e6..28d5f202d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java @@ -350,7 +350,6 @@ public Builder from(CreateDirectoryProvisioningResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -362,7 +361,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -374,7 +372,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -386,7 +383,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -398,7 +394,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -410,7 +405,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ 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 af32124c8..d43f27db4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java @@ -144,7 +144,6 @@ public Builder from(CreateDirectorySynchronizationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -156,7 +155,6 @@ public SynchronizationIdStage connectionId(@NotNull String connectionId) { } /** - *

The synchronization's identifier

*

The synchronization's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -168,7 +166,6 @@ public StatusStage synchronizationId(@NotNull String synchronizationId) { } /** - *

The synchronization status

*

The synchronization status

* @return Reference to {@code this} so that method calls can be chained together. */ 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 8f945052c..398a18890 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java @@ -117,7 +117,6 @@ public Builder from(CreateEncryptionKeyPublicWrappingResponseContent other) { } /** - *

Public wrapping key in PEM format

*

Public wrapping key in PEM format

* @return Reference to {@code this} so that method calls can be chained together. */ 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 08839950c..c4b4dc75d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java @@ -263,7 +263,6 @@ public Builder from(CreateEncryptionKeyResponseContent other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -289,7 +288,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -301,7 +299,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1421fc9db..b2872adb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java @@ -204,7 +204,6 @@ public Builder from(CreateEventStreamTestEventResponseContent other) { } /** - *

Unique identifier for the delivery

*

Unique identifier for the delivery

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -216,7 +215,6 @@ public EventStreamIdStage id(@NotNull String id) { } /** - *

Unique identifier for the event stream.

*

Unique identifier for the event stream.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d98a7b0af..628db241a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java @@ -121,7 +121,6 @@ public Builder from(CreateExportUsersFields other) { } /** - *

Name of the field in the profile.

*

Name of the field in the profile.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 31a11a0b8..8c97e50ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java @@ -266,7 +266,6 @@ public Builder from(CreateExportUsersResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -278,7 +277,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -290,7 +288,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4b9f4b2f7..8c0db6f52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionActivecampaignApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0a6b54c70..a6a70ccd4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionActivecampaignUninitialized other) } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1a298c343..60bb5d23b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionAirtableApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 73bec5fe4..c46ccaa85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionAirtableUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 5301b1410..2d5e300b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionAuth0OauthApp other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 be7b9c478..8c5d58636 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionAuth0Uninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 83ad39ca6..579c4a7b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionBigqueryJwt other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 64309c78d..869c4aa71 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionBigqueryUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 47c25b643..7b68f7134 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionClearbitApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3a5c776f7..a5ac651a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionClearbitUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a7b26704d..786956d09 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionDocusignOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d98b3ab2f..8a3767016 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionDocusignUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b3d8b851a..7751082d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionGoogleSheetsOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a6582ca2a..8961ae272 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionGoogleSheetsUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 e92d05816..44f1e93e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ed376185b..09beaf274 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpBasicAuth other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 37290eade..c5eb428cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpBearer other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 608885985..c67d197d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHttpOauthClientCredentials other) } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 aaaff6f04..003866248 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionHttpUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9d4a11bd8..eac2d8359 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHubspotApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 682862ea8..903dfdf94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionHubspotOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 93935a483..c2ae04914 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionHubspotUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0785b7bb7..be9830757 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java @@ -132,7 +132,6 @@ public Builder from(CreateFlowsVaultConnectionJwtJwt other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f0e8e4153..dfc9ac72c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionJwtUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4041a30fa..b8ebddd18 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionMailchimpApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d52bd220f..5d9e85255 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionMailchimpOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ad41b4c84..e422648f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionMailchimpUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 aabbdfc34..e59129ad5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionMailjetApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 e76859212..5b3c88776 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionMailjetUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c08c00138..2bdd90290 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionPipedriveOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 60d17bb82..362720db2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionPipedriveToken other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 985f69d96..f0cc11749 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionPipedriveUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 87e6bcde6..8801e14fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java @@ -323,7 +323,6 @@ public Builder from(CreateFlowsVaultConnectionResponseContent other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -335,7 +334,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -347,7 +345,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -359,7 +356,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -371,7 +367,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -383,7 +378,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 49533d159..2c1a7b3e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSalesforceOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 146ce72b1..979322eab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionSalesforceUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9ef8e0637..de94a2041 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSendgridApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 40eb54063..bb4fbf15a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionSendgridUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 63222a794..5614972c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSlackOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 33fbd9dd5..301999b41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionSlackUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 853ad61dd..4dbfcacfe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionSlackWebhook other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1b2ad99c9..c9994aa7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionStripeKeyPair other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 87f0ee041..3aebd325c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionStripeOauthCode other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 607e9ae2c..45d0633c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionStripeUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 09b10661e..a109b44ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionTelegramToken other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a088e49fb..f352f1298 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionTelegramUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2921ee219..50fa117e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionTwilioApiKey other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 abe3037e5..12ab6829b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionTwilioUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 246626fe3..a04e858a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionWhatsappToken other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ccbcf55ea..b8a5b31de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionWhatsappUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0e344a138..4ad15d2ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java @@ -115,7 +115,6 @@ public Builder from(CreateFlowsVaultConnectionZapierUninitialized other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 214722b10..664335aca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java @@ -133,7 +133,6 @@ public Builder from(CreateFlowsVaultConnectionZapierWebhook other) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 679c70b37..9f0cff506 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java @@ -188,7 +188,6 @@ public Builder from(CreateHookRequestContent other) { } /** - *

Name of this hook.

*

Name of this hook.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -200,7 +199,6 @@ public ScriptStage name(@NotNull String name) { } /** - *

Code to be executed when this hook runs.

*

Code to be executed when this hook runs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -212,7 +210,6 @@ public TriggerIdStage script(@NotNull String script) { } /** - *

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

*

Execution stage of this rule. Can be credentials-exchange, pre-user-registration, post-user-registration, post-change-password, or send-phone-message.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b563c018f..647e19fd1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java @@ -218,7 +218,6 @@ public Builder from(CreateImportUsersResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -230,7 +229,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -242,7 +240,6 @@ public CreatedAtStage type(@NotNull String type) { } /** - *

When this job was created.

*

When this job was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -254,7 +251,6 @@ public IdStage createdAt(@NotNull String createdAt) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -266,7 +262,6 @@ public ConnectionIdStage id(@NotNull String id) { } /** - *

connection_id of the connection to which users will be imported.

*

connection_id of the connection to which users will be imported.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9f4e9a902..8f8a1a089 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java @@ -166,7 +166,6 @@ public ActiveStage description(@NotNull String description) { } /** - *

Indicates whether or not this access control list is actively being used

*

Indicates whether or not this access control list is actively being used

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java index 72848bb6e..d37412f26 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationAllConnectionResponseContent.java @@ -260,7 +260,6 @@ public Builder from(CreateOrganizationAllConnectionResponseContent other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c67e921e8..ec97cb829 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java @@ -219,7 +219,6 @@ public Builder from(CreateOrganizationDiscoveryDomainResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d891bd2d9..a81441380 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java @@ -225,7 +225,6 @@ public Builder from(CreateOrganizationRequestContent other) { } /** - *

The name of this organization.

*

The name of this organization.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0117814ca..f9ce44057 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java @@ -220,7 +220,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 02793485e..3b2f12b9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java @@ -189,7 +189,6 @@ public Builder from(CreatePublicKeyDeviceCredentialRequestContent other) { } /** - *

Name for this device easily recognized by owner.

*

Name for this device easily recognized by owner.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -208,7 +207,6 @@ public ValueStage type(@NotNull DeviceCredentialPublicKeyTypeEnum type) { } /** - *

Base64 encoded string containing the credential.

*

Base64 encoded string containing the credential.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -220,7 +218,6 @@ public DeviceIdStage value(@NotNull String value) { } /** - *

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. */ 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 13a068cc0..f8ac76531 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java @@ -99,7 +99,6 @@ public Builder from(CreatePublicKeyDeviceCredentialResponseContent other) { } /** - *

The credential's identifier

*

The credential's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java index 57aa519d3..bfc0f47f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyRequestContent.java @@ -167,7 +167,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java index ddd2b7394..73baef504 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRateLimitPolicyResponseContent.java @@ -232,7 +232,6 @@ public Builder from(CreateRateLimitPolicyResponseContent other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -258,7 +257,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 15c4fa3f7..15d3d7897 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java @@ -542,7 +542,6 @@ public Builder from(CreateResourceServerRequestContent other) { } /** - *

Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set.

*

Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ac4d8e960..db9667d84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java @@ -122,7 +122,6 @@ public Builder from(CreateRoleRequestContent other) { } /** - *

Name of the role.

*

Name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 702341130..b24855766 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java @@ -171,7 +171,6 @@ public Builder from(CreateRuleRequestContent other) { } /** - *

Name of this rule.

*

Name of this rule.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -183,7 +182,6 @@ public ScriptStage name(@NotNull String name) { } /** - *

Code to be executed when this rule runs.

*

Code to be executed when this rule runs.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 6a60aeffb..6fdc78e54 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java @@ -284,7 +284,6 @@ public Builder from(CreateScimConfigurationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -332,7 +328,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +339,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +350,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2283ca8f3..6f080c6e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java @@ -219,7 +219,6 @@ public Builder from(CreateSelfServiceProfileRequestContent other) { } /** - *

The name of the self-service Profile.

*

The name of the self-service Profile.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 191c7374e..ae5b14820 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java @@ -165,7 +165,6 @@ public Builder from(CreateTokenExchangeProfileRequestContent other) { } /** - *

Friendly name of this profile.

*

Friendly name of this profile.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -177,7 +176,6 @@ public SubjectTokenTypeStage name(@NotNull String name) { } /** - *

Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI.

*

Subject token type for this profile. When receiving a token exchange request on the Authentication API, the corresponding token exchange profile with a matching subject_token_type will be executed. This must be a URI.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -189,7 +187,6 @@ public ActionIdStage subjectTokenType(@NotNull String subjectTokenType) { } /** - *

The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger.

*

The ID of the Custom Token Exchange action to execute for this profile, in order to validate the subject_token. The action must use the custom-token-exchange trigger.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 20cd7844d..6d6027e7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java @@ -475,7 +475,6 @@ public Builder from(CreateUserRequestContent other) { } /** - *

Name of the connection this user should be created in.

*

Name of the connection this user should be created in.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c242bbf22..b33b86336 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java @@ -172,7 +172,6 @@ public Builder from(CreateVerificationEmailResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -184,7 +183,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -196,7 +194,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9c6a9978a..276cb45f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java @@ -98,7 +98,6 @@ public Builder from(CredentialId other) { } /** - *

Credential ID

*

Credential ID

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java index c4f576165..0eb612af2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CrossAppAccessRequestingApp.java @@ -97,7 +97,6 @@ public Builder from(CrossAppAccessRequestingApp other) { } /** - *

Set to true to enable the connection as a Requesting Application for Cross App Access.

*

Set to true to enable the connection as a Requesting Application for Cross App Access.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0f22b8595..f92c1a8c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java @@ -379,7 +379,6 @@ public Builder from(CustomDomain other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -391,7 +390,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -403,7 +401,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 97dbcc51e..829ea5e96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -34,7 +35,8 @@ private DeleteActionRequestParameters(OptionalNullable force, Map getForce() { if (force == null) { return OptionalNullable.absent(); @@ -42,6 +44,12 @@ public OptionalNullable getForce() { return force; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("force") + private OptionalNullable _getForce() { + return force; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 c0b37bd2b..c985d7219 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java @@ -6,9 +6,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; @@ -31,7 +31,7 @@ private DeleteUserBlocksByIdentifierRequestParameters(String identifier, MapShould be any of a username, phone number, or email.

*

Should be any of a username, phone number, or email.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a6189f355..70afd837c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java @@ -6,9 +6,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; @@ -31,7 +31,7 @@ private DeleteUserGrantByUserIdRequestParameters(String userId, Mapuser_id of the grant to delete.

*

user_id of the grant to delete.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 835020771..1e29a101c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java @@ -266,7 +266,6 @@ public Builder from(DeleteUserIdentityResponseContentItem other) { } /** - *

The name of the connection for the identity.

*

The name of the connection for the identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -278,7 +277,6 @@ public UserIdStage connection(@NotNull String connection) { } /** - *

The unique identifier for the user for the identity.

*

The unique identifier for the user for the identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -290,7 +288,6 @@ public ProviderStage userId(@NotNull UserId userId) { } /** - *

The type of identity provider.

*

The type of identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 dcddd0b3f..5b35e8100 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java @@ -349,7 +349,6 @@ public Builder from(DirectoryProvisioning other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -361,7 +360,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +371,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +382,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -397,7 +393,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -409,7 +404,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7340637fb..40c38a648 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java @@ -119,7 +119,6 @@ public Builder from(DirectoryProvisioningMappingItem other) { } /** - *

The field location in the Auth0 schema

*

The field location in the Auth0 schema

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public IdpStage auth0(@NotNull String auth0) { } /** - *

The field location in the IDP schema

*

The field location in the IDP schema

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a987492d3..6fca99e8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java @@ -147,7 +147,6 @@ public RecordStage name(@NotNull DomainVerificationMethodNameEnum name) { } /** - *

Value used to verify the domain.

*

Value used to verify the domain.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 64a339fcf..27009dfc8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java @@ -99,7 +99,6 @@ public Builder from(EmailProviderCredentialsSchemaZero other) { } /** - *

API Key

*

API Key

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0f6dffd88..edb37d7f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java @@ -262,7 +262,6 @@ public Builder from(EncryptionKey other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -288,7 +287,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -300,7 +298,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ 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 860e983c5..3df3d5a0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java @@ -98,7 +98,6 @@ public Builder from(EventStreamActionConfiguration other) { } /** - *

Action ID for the action destination.

*

Action ID for the action destination.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java index a5fd04e8b..9b23b018d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventConnectionCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java index 1fd7b421c..964d9a848 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventConnectionCreatedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventConnectionCreatedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java index 5ca7a3a2f..66827beec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java index b424019fa..8cf86908a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java index 71f9d577c..e21b1cb8b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java index 1b2376775..ce43ec619 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java index 4ba0e61cf..66c49bde0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java index faeb2e6b2..c21a8a76d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java index 6bd9b8286..58cee3809 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java index 88253d136..b6c6ddd8a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java index 0310c754d..0b196a40e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject2 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java index bbdf5d6bb..f210377fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject3 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java index a4cfb06aa..586cbb5a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java @@ -567,7 +567,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject3Options other) } /** - *

URL provided by PingFederate which returns information used for creating the connection

*

URL provided by PingFederate which returns information used for creating the connection

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java index 7ab401808..5a0fd7e39 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject4 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java index 70293f1c6..e1e0fa31d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java @@ -318,7 +318,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject5 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +329,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java index 4296b9c9c..cd6b1229b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject6 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java index 01441213d..cd96c3b47 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java @@ -631,7 +631,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject6Options other) } /** - *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

*

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java index e3ad1414d..7b8a211f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java index ad6347893..45aa19f55 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject7 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java index 20bc92b97..24c2ecd3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java @@ -736,7 +736,6 @@ public Builder from(EventStreamCloudEventConnectionCreatedObject7Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java index 75c6b9408..d013f6221 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java index 540c8747f..d99dc620e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventConnectionDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java index eb4457332..702793fa3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventConnectionDeletedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventConnectionDeletedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java index 817394a24..19546f209 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java index daf0272c1..4021bd52d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java index efea7ae37..c03d4e1e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java index dea16359e..d3c02e0c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java index 4ae5c52fc..faed49ce6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java index 77422546d..ebce90ee8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java index 57d40975b..82aaa1109 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java index c3382601d..9dc836510 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java index 341ffcd52..1512c6c3a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject2 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java index 2a2e4b800..205a6cb8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject3 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java index 63646efb7..8d88f0163 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java @@ -567,7 +567,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject3Options other) } /** - *

URL provided by PingFederate which returns information used for creating the connection

*

URL provided by PingFederate which returns information used for creating the connection

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java index 1f6b58026..356660376 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject4 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java index 98eb21f85..d9da5e945 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java @@ -318,7 +318,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject5 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +329,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java index ccba98654..8593acc88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject6 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java index 7904b2bb0..88101ea90 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java @@ -631,7 +631,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject6Options other) } /** - *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

*

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java index 38900ced8..c563cfea7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java index 4c72a540b..5189a96f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject7 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java index cfd7eb1ce..cc793d70c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java @@ -736,7 +736,6 @@ public Builder from(EventStreamCloudEventConnectionDeletedObject7Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java index 0902bcd4f..b95ba2036 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java index 28790617d..bb31eac22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventConnectionUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java index 3bbeb7109..b9d96fa30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventConnectionUpdatedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventConnectionUpdatedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java index 7dc8afcd5..c110b3856 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java index 20cf83ccf..baa79b36d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java index 2b090aa4a..fcf285cf3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java index fcabc733d..58b649087 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java index dd610e70c..e421465dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java index ad642bbff..cf7accfd4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java @@ -716,7 +716,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java index b4bb2e6b2..1d6fcd646 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java index b0d3080e7..ff24d8e5f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java @@ -976,7 +976,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMeta } /** - *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

*

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -989,7 +988,6 @@ public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) } /** - *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

*

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -1001,7 +999,6 @@ public JwksUriStage issuer(@NotNull String issuer) { } /** - *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

*

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java index 283096462..ec31b0d11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject2 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java index f2a068804..27727db52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject3 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java index ed6a007fe..1d8471540 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java @@ -567,7 +567,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject3Options other) } /** - *

URL provided by PingFederate which returns information used for creating the connection

*

URL provided by PingFederate which returns information used for creating the connection

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java index 7844ca7db..6250a25fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject4 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java index 3e9a5f710..f4c0b1097 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java @@ -318,7 +318,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject5 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +329,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java index 0a5cd5623..9bc1cde9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject6 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java index 225f6accf..c81539d92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java @@ -631,7 +631,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject6Options other) } /** - *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

*

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java index 7c44fbfb0..6faca28cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java index 5c06664c4..26792d965 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java @@ -342,7 +342,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject7 other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -354,7 +353,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

*

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java index efc2589a3..d5bc21c2f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java @@ -736,7 +736,6 @@ public Builder from(EventStreamCloudEventConnectionUpdatedObject7Options other) } /** - *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

*

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java index b8d56c162..8c4361393 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -103,7 +103,6 @@ public Builder from( } /** - *

Enables refresh tokens and access tokens collection for federated connections

*

Enables refresh tokens and access tokens collection for federated connections

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java index 40d48673f..d87e77829 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextClient.java @@ -140,7 +140,6 @@ public Builder from(EventStreamCloudEventContextClient other) { } /** - *

The client identifier.

*

The client identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -152,7 +151,6 @@ public NameStage id(@NotNull String id) { } /** - *

The client name.

*

The client name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java index a1c9040eb..05b492f5b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextConnection.java @@ -142,7 +142,6 @@ public Builder from(EventStreamCloudEventContextConnection other) { } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -154,7 +153,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the connection.

*

The name of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -166,7 +164,6 @@ public StrategyStage name(@NotNull String name) { } /** - *

The auth strategy implemented by the connection.

*

The auth strategy implemented by the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java index 8698c70ba..9b39a01e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextRequest.java @@ -220,7 +220,6 @@ public HostnameStage geo(@NotNull EventStreamCloudEventContextRequestGeo geo) { } /** - *

The hostname the request is for.

*

The hostname the request is for.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -232,7 +231,6 @@ public IpStage hostname(@NotNull String hostname) { } /** - *

The originating IP address of the request.

*

The originating IP address of the request.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -244,7 +242,6 @@ public MethodStage ip(@NotNull String ip) { } /** - *

The HTTP method used for the request.

*

The HTTP method used for the request.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -256,7 +253,6 @@ public UserAgentStage method(@NotNull String method) { } /** - *

The value of the User-Agent header.

*

The value of the User-Agent header.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java index 277036b81..5238871da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventContextTenant.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventContextTenant other) { } /** - *

Machine-generated unique tenant identifier.

*

Machine-generated unique tenant identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java index 83f28b303..ceb58c984 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventErrorDetail.java @@ -147,7 +147,6 @@ public MessageStage code(@NotNull EventStreamCloudEventErrorCodeEnum code) { } /** - *

Human-readable error message.

*

Human-readable error message.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java index 14f8faa04..70bc062ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreated.java @@ -116,7 +116,6 @@ public Builder from(EventStreamCloudEventGroupCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java index 2239a6f2d..89ebab528 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupCreatedCloudEventType } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupCreatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java index bdf7ff22a..87b2edafb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject0.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupCreatedObject0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupCreatedObject0T } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java index a62b38b49..f800eaa10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject1.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupCreatedObject1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupCreatedObject } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java index e4ba9ccee..e6ee8d6d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedObject2.java @@ -190,7 +190,6 @@ public Builder from(EventStreamCloudEventGroupCreatedObject2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -202,7 +201,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -214,7 +212,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java index a73906a65..764aa6314 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeleted.java @@ -116,7 +116,6 @@ public Builder from(EventStreamCloudEventGroupDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java index 90619039c..839ba2995 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupDeletedCloudEventType } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupDeletedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java index 8dff4b989..c3d6f6ab6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject0.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupDeletedObject0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupDeletedObject0T } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage connectionId(@NotNull String connectionId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java index dc8d00096..757518c3f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject1.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupDeletedObject1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupDeletedObject } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage organizationId(@NotNull String organizationId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java index e482dc4d6..dfeb83ba0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedObject2.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupDeletedObject2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public UpdatedAtStage type(@NotNull EventStreamCloudEventGroupDeletedObject2Type } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java index b9a09c15a..794df3cc3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAdded.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupMemberAdded other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java index b878d37f8..7038825bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupMemberAddedCloudEvent } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupMemberAddedData dat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java index 1fccd52fc..aaf0440ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberAddedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupMemberAddedObje } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java index fc0887104..6281ee7bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberAddedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupMemberAddedOb } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java index 19e261536..b3c985db5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupMemberAddedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java index 7433827fa..ebe073ec8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember0.java @@ -125,7 +125,6 @@ public IdStage memberType( } /** - *

The user's unique identifier

*

The user's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java index e660fce3f..4a6f2a96b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedObjectMember1.java @@ -172,7 +172,6 @@ public IdStage memberType( } /** - *

The connection member's unique identifier

*

The connection member's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -184,7 +183,6 @@ public TypeStage id(@NotNull String id) { } /** - *

The type of the connection

*

The type of the connection

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -196,7 +194,6 @@ public ConnectionIdStage type(@NotNull String type) { } /** - *

Connection ID associated with the member

*

Connection ID associated with the member

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java index 90c510efc..a35f59e52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java index f7c38e928..bee6ff895 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupMemberDeletedCloudEve } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupMemberDeletedData d } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java index fa1b9252b..221d83c32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupMemberDeletedOb } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java index 0dae6da85..27223e03d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupMemberDeleted } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java index 6a62c78c2..d15b639cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java index e0f9f6e40..d6bb04d78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember0.java @@ -125,7 +125,6 @@ public IdStage memberType( } /** - *

The user's unique identifier

*

The user's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java index 9258b7960..e7b3e6c0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedObjectMember1.java @@ -172,7 +172,6 @@ public IdStage memberType( } /** - *

The connection member's unique identifier

*

The connection member's unique identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -184,7 +183,6 @@ public TypeStage id(@NotNull String id) { } /** - *

The type of the connection

*

The type of the connection

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -196,7 +194,6 @@ public ConnectionIdStage type(@NotNull String type) { } /** - *

Connection ID associated with the member

*

Connection ID associated with the member

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java index ef74a3fbc..60fe4198d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssigned.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssigned other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java index e9687e449..c32f0ce8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupRoleAssignedCloudEven } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupRoleAssignedData da } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java index 8ad51d5fd..6f5c21f16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObject.java @@ -148,7 +148,6 @@ public CreatedAtStage role(@NotNull EventStreamCloudEventGroupRoleAssignedObject } /** - *

The time at which the role was assigned to the group.

*

The time at which the role was assigned to the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java index 57512718e..36a022ed4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupRoleAssignedObj } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java index 94584d80b..b7a708abb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupRoleAssignedO } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java index c6df4222c..e98492b73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java index b28d6d65d..5ec55910a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java index d54b11104..547020fa6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java index be6c90d0c..f3e3b444e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupRoleDeletedCloudEvent } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupRoleDeletedData dat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java index 45d18c057..49fe8e51f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObject.java @@ -148,7 +148,6 @@ public DeletedAtStage role(@NotNull EventStreamCloudEventGroupRoleDeletedObjectR } /** - *

The time at which the role was removed from the group.

*

The time at which the role was removed from the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java index 045bdaf48..491dbe493 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectGroup0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupRoleDeletedObje } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java index ff9f9c457..269e2d76b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectGroup1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupRoleDeletedOb } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java index a778d6d48..06b8bc343 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectGroup2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java index 47abba575..ceecf1b5d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedObjectRole.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java index fca339cb2..4dc985584 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdated.java @@ -116,7 +116,6 @@ public Builder from(EventStreamCloudEventGroupUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java index 1eb3f372e..de1d50045 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventGroupUpdatedCloudEventType } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventGroupUpdatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java index 7b5731c0d..8e886553d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject0.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupUpdatedObject0 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventGroupUpdatedObject0T } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage connectionId(@NotNull String connectionId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java index f62fd9565..b6fdf005b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject1.java @@ -238,7 +238,6 @@ public Builder from(EventStreamCloudEventGroupUpdatedObject1 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +249,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +260,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -281,7 +278,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventGroupUpdatedObject } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -293,7 +289,6 @@ public UpdatedAtStage organizationId(@NotNull String organizationId) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java index e22e201e2..505fa11c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedObject2.java @@ -214,7 +214,6 @@ public Builder from(EventStreamCloudEventGroupUpdatedObject2 other) { } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -226,7 +225,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the group.

*

The name of the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -238,7 +236,6 @@ public CreatedAtStage name(@NotNull String name) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +254,6 @@ public UpdatedAtStage type(@NotNull EventStreamCloudEventGroupUpdatedObject2Type } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java index 2e1f1515c..b9aea7785 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOffsetOnlyMessage.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOffsetOnlyMessage other) { } /** - *

Opaque cursor representing the latest position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing the latest position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java index ba9bbf010..a23203d7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAdded.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgConnectionAdded other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java index 5e24cd6e7..625c8fe64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgConnectionAddedCloudEve } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgConnectionAddedData d } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java index e9d4a1646..0cfcf7bde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectConnection.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedObjectConnection othe } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java index 6dbc5e0d9..988068cb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedObjectOrganization ot } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java index 8c0be8d18..ffec23968 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemoved.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgConnectionRemoved other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java index 6f2c74f12..cdc53854e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgConnectionRemovedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgConnectionRemovedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java index d2774af3b..a8adbeef3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectConnection.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgConnectionRemovedObjectConnection ot } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java index 3523d774b..3df84ad73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgConnectionRemovedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java index 7b7ecbe60..141aaad86 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdated.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java index b17f9e897..5fa7c6176 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgConnectionUpdatedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgConnectionUpdatedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java index 41eaa70f0..3324be449 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectConnection.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedObjectConnection ot } /** - *

The ID of the connection.

*

The ID of the connection.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java index a1c161622..804d93a90 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java index e168f6334..4216ea842 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventOrgCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java index a55870f69..35e2b20d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgCreatedCloudEventTypeEn } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgCreatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java index 5e1d4223e..b543596dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedObject.java @@ -183,7 +183,6 @@ public Builder from(EventStreamCloudEventOrgCreatedObject other) { } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java index f0444b0ee..ed145d7db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeleted.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventOrgDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java index fc39b3d3d..f81b5a991 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgDeletedCloudEventTypeEn } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgDeletedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java index 5fcdbfef3..01fd86a2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedObject.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgDeletedObject other) { } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java index fc22b3ce8..2922bbcb9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssigned.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssigned other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java index 28c6122ba..7bc2f6ce3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssignedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgGroupRoleAssignedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java index c8c3cd959..257ec2440 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObject.java @@ -175,7 +175,6 @@ public CreatedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleAssignedOb } /** - *

The time at which the role was assigned to the group in the organization.

*

The time at which the role was assigned to the group in the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java index f6400b15f..4fdd56e08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssigned } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java index e23039f89..b09c88d62 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleAssign } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java index 994cc95f8..1dea93976 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java index bdfd5d157..3da652294 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java index 9e4e16fff..170455a49 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java index 73d03e057..d989deb1a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java index 45e2e4a0c..9866bbf6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedCloudEv } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgGroupRoleDeletedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java index a73b75972..76870870a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObject.java @@ -175,7 +175,6 @@ public DeletedAtStage group(@NotNull EventStreamCloudEventOrgGroupRoleDeletedObj } /** - *

The time at which the role was removed from the group in the organization.

*

The time at which the role was removed from the group in the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java index 3ba361260..d2aeb0491 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public ConnectionIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleDeletedO } /** - *

The connection ID associated with the group.

*

The connection ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java index c8c4ed2d5..68e245f94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1.java @@ -166,7 +166,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -185,7 +184,6 @@ public OrganizationIdStage type(@NotNull EventStreamCloudEventOrgGroupRoleDelete } /** - *

The organization ID associated with the group.

*

The organization ID associated with the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java index 9a486699b..5fd68b4c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2.java @@ -141,7 +141,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2 other) } /** - *

The unique identifier for the group.

*

The unique identifier for the group.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java index 28dfa4838..32a582e7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization o } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java index 9a0b79316..c47436caa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedObjectRole.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java index 306d0aa64..39ed6ad61 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAdded.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberAdded other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java index fbfeade86..6b873a85e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberAddedCloudEventTy } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberAddedData data) } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java index ab4586584..eeccf887b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgMemberAddedObjectOrganization other) } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java index efede79ad..a0c74eab9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedObjectUser.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOrgMemberAddedObjectUser other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java index b2f6fef24..c3d605ecf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java index 2671db41a..590949c97 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberDeletedCloudEvent } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberDeletedData dat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java index 7dbc8e81f..a45e904fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectOrganization.java @@ -123,7 +123,6 @@ public Builder from(EventStreamCloudEventOrgMemberDeletedObjectOrganization othe } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java index 0f5fee043..0fc5315c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedObjectUser.java @@ -99,7 +99,6 @@ public Builder from(EventStreamCloudEventOrgMemberDeletedObjectUser other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java index 983909ceb..62f92aae1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssigned.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssigned other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java index 1d64e3518..a1b289059 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberRoleAssignedCloud } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberRoleAssignedDat } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java index 327291568..500c56694 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java index 824b0bffe..7f10f3cca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedObjectRole other) } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java index 09cbffc52..ebd1ef2d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedObjectUser.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedObjectUser other) } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java index 2d04003bd..4e568639f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeleted.java @@ -117,7 +117,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java index fc762f77c..dcfd08d10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgMemberRoleDeletedCloudE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgMemberRoleDeletedData } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java index d6f7a56eb..a5bca5981 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java index bcf322e64..7cf6a4340 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectRole.java @@ -121,7 +121,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedObjectRole other) { } /** - *

The ID of the role.

*

The ID of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public NameStage id(@NotNull String id) { } /** - *

The name of the role.

*

The name of the role.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java index 493ccfef8..20cbae38b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedObjectUser.java @@ -100,7 +100,6 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedObjectUser other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java index 122184a58..b8b474d98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventOrgUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java index 0e265994b..4dfe21498 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventOrgUpdatedCloudEventTypeEn } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventOrgUpdatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java index 537970b76..b246eabb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedObject.java @@ -183,7 +183,6 @@ public Builder from(EventStreamCloudEventOrgUpdatedObject other) { } /** - *

ID of the organization.

*

ID of the organization.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java index 974f9989c..765057978 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventUserCreated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java index dfa873100..5dc5ef52c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventUserCreatedCloudEventTypeE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventUserCreatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java index d5a0195d0..a46dea36a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObject.java @@ -577,7 +577,6 @@ public Builder from(EventStreamCloudEventUserCreatedObject other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -589,7 +588,6 @@ public CreatedAtStage userId(@NotNull String userId) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -601,7 +599,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java index e7ce2b54a..0ba463c3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java index 452e5bf53..7e2cba94a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java index 61f365544..f18d974b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpri } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java index 0d4478c21..224c0398c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless.java @@ -176,7 +176,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemPassword } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java index a4e40b736..80c55a674 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java index 47b8950fc..2dfc193ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeleted.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventUserDeleted other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java index d7832e6eb..00b2e9d2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventUserDeletedCloudEventTypeE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventUserDeletedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java index e5238cc00..39f37bc74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObject.java @@ -602,7 +602,6 @@ public Builder from(EventStreamCloudEventUserDeletedObject other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -614,7 +613,6 @@ public CreatedAtStage userId(@NotNull String userId) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -626,7 +624,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -638,7 +635,6 @@ public DeletedAtStage updatedAt(@NotNull OffsetDateTime updatedAt) { } /** - *

Date and time when this entity was deleted (ISO_8601 format).

*

Date and time when this entity was deleted (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java index 737499538..2b46d7c4b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java index 419ccb420..c338b4cd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java index 2a1e687ff..327fd0d8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpri } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java index 08e53fef7..1c7f83b13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless.java @@ -176,7 +176,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemPassword } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java index 8befc3811..481835c2f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java index 6a0b741ef..3fb138704 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdated.java @@ -114,7 +114,6 @@ public Builder from(EventStreamCloudEventUserUpdated other) { } /** - *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

*

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java index d7feb6739..212b83318 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java @@ -296,7 +296,6 @@ public SourceStage type(@NotNull EventStreamCloudEventUserUpdatedCloudEventTypeE } /** - *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

*

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +307,6 @@ public IdStage source(@NotNull String source) { } /** - *

A unique identifier for the event.

*

A unique identifier for the event.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +318,6 @@ public TimeStage id(@NotNull String id) { } /** - *

An ISO-8601 timestamp indicating when the event physically occurred.

*

An ISO-8601 timestamp indicating when the event physically occurred.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +336,6 @@ public A0TenantStage data(@NotNull EventStreamCloudEventUserUpdatedData data) { } /** - *

The auth0 tenant ID to which the event is associated.

*

The auth0 tenant ID to which the event is associated.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -351,7 +347,6 @@ public A0StreamStage a0Tenant(@NotNull String a0Tenant) { } /** - *

The auth0 event stream ID of the stream the event was delivered on.

*

The auth0 event stream ID of the stream the event was delivered on.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java index b13a9f466..718d9e7a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObject.java @@ -577,7 +577,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObject other) { } /** - *

ID of the user which can be used when interacting with other APIs.

*

ID of the user which can be used when interacting with other APIs.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -589,7 +588,6 @@ public CreatedAtStage userId(@NotNull String userId) { } /** - *

Date and time when this entity was created (ISO_8601 format).

*

Date and time when this entity was created (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -601,7 +599,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Date and time when this entity was last updated/modified (ISO_8601 format).

*

Date and time when this entity was last updated/modified (ISO_8601 format).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java index 129e8c3a1..a9ee17715 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java index e8151f7cb..c657a1b46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java index f6e0423a0..d1ae51fd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpri } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java index ebd5f8777..647e5811b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless.java @@ -176,7 +176,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemPassword } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java index f1fad1313..c4145bd46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial.java @@ -175,7 +175,6 @@ public Builder from(EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial o } /** - *

Name of the connection containing this identity.

*

Name of the connection containing this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3e55b7e29..c5662cbef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java @@ -203,7 +203,6 @@ public Builder from(EventStreamDelivery other) { } /** - *

Unique identifier for the delivery

*

Unique identifier for the delivery

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -215,7 +214,6 @@ public EventStreamIdStage id(@NotNull String id) { } /** - *

Unique identifier for the event stream.

*

Unique identifier for the event stream.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d8502ab4b..a66e11050 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java @@ -150,7 +150,6 @@ public TimestampStage status(@NotNull EventStreamDeliveryStatusEnum status) { } /** - *

Timestamp of delivery attempt

*

Timestamp of delivery attempt

* @return Reference to {@code this} so that method calls can be chained together. */ 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 100c67e43..7193467f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java @@ -143,7 +143,6 @@ public Builder from(EventStreamEventBridgeConfiguration other) { } /** - *

AWS Account ID for EventBridge destination.

*

AWS Account ID for EventBridge destination.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f9a0bffbd..50d5853fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java @@ -121,7 +121,6 @@ public UsernameStage method(@NotNull EventStreamWebhookBasicAuthMethodEnum metho } /** - *

Username

*

Username

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2c0760dc7..a4f918667 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java @@ -116,7 +116,6 @@ public Builder from(EventStreamWebhookConfiguration other) { } /** - *

Target HTTP endpoint URL.

*

Target HTTP endpoint URL.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java index 3d9b9bd39..6bf1f0f88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java @@ -124,7 +124,6 @@ public HeaderKeyStage method(@NotNull EventStreamWebhookCustomHeaderAuthMethodEn } /** - *

HTTP header name.

*

HTTP header name.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 54865823f..188b09e9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java @@ -304,7 +304,6 @@ public Builder from(ExpressConfiguration other) { } /** - *

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

*

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -317,7 +316,6 @@ public UserAttributeProfileIdStage initiateLoginUriTemplate(@NotNull String init } /** - *

The ID of the user attribute profile to use for this application.

*

The ID of the user attribute profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +328,6 @@ public ConnectionProfileIdStage userAttributeProfileId(@NotNull String userAttri } /** - *

The ID of the connection profile to use for this application.

*

The ID of the connection profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +340,6 @@ public EnableClientStage connectionProfileId(@NotNull String connectionProfileId } /** - *

When true, all connections made via express configuration will be enabled for this application.

*

When true, all connections made via express configuration will be enabled for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +351,6 @@ public EnableOrganizationStage enableClient(boolean enableClient) { } /** - *

When true, all connections made via express configuration will have the associated organization enabled.

*

When true, all connections made via express configuration will have the associated organization enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +362,6 @@ public OktaOinClientIdStage enableOrganization(boolean enableOrganization) { } /** - *

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

*

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +373,6 @@ public AdminLoginDomainStage oktaOinClientId(@NotNull String oktaOinClientId) { } /** - *

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

*

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 66ad51157..ad615bae5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java @@ -304,7 +304,6 @@ public Builder from(ExpressConfigurationOrNull other) { } /** - *

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

*

The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -317,7 +316,6 @@ public UserAttributeProfileIdStage initiateLoginUriTemplate(@NotNull String init } /** - *

The ID of the user attribute profile to use for this application.

*

The ID of the user attribute profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -330,7 +328,6 @@ public ConnectionProfileIdStage userAttributeProfileId(@NotNull String userAttri } /** - *

The ID of the connection profile to use for this application.

*

The ID of the connection profile to use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +340,6 @@ public EnableClientStage connectionProfileId(@NotNull String connectionProfileId } /** - *

When true, all connections made via express configuration will be enabled for this application.

*

When true, all connections made via express configuration will be enabled for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +351,6 @@ public EnableOrganizationStage enableClient(boolean enableClient) { } /** - *

When true, all connections made via express configuration will have the associated organization enabled.

*

When true, all connections made via express configuration will have the associated organization enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +362,6 @@ public OktaOinClientIdStage enableOrganization(boolean enableOrganization) { } /** - *

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

*

This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +373,6 @@ public AdminLoginDomainStage oktaOinClientId(@NotNull String oktaOinClientId) { } /** - *

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

*

This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java b/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java deleted file mode 100644 index fa43fb939..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java +++ /dev/null @@ -1,292 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.NullableNonemptyFilter; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import org.jetbrains.annotations.Nullable; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = FederatedConnectionTokenSet.Builder.class) -public final class FederatedConnectionTokenSet { - private final Optional id; - - private final Optional connection; - - private final Optional scope; - - private final OptionalNullable expiresAt; - - private final Optional issuedAt; - - private final OptionalNullable lastUsedAt; - - private final Map additionalProperties; - - private FederatedConnectionTokenSet( - Optional id, - Optional connection, - Optional scope, - OptionalNullable expiresAt, - Optional issuedAt, - OptionalNullable lastUsedAt, - Map additionalProperties) { - this.id = id; - this.connection = connection; - this.scope = scope; - this.expiresAt = expiresAt; - this.issuedAt = issuedAt; - this.lastUsedAt = lastUsedAt; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("id") - public Optional getId() { - return id; - } - - @JsonProperty("connection") - public Optional getConnection() { - return connection; - } - - @JsonProperty("scope") - public Optional getScope() { - return scope; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("expires_at") - public OptionalNullable getExpiresAt() { - if (expiresAt == null) { - return OptionalNullable.absent(); - } - return expiresAt; - } - - @JsonProperty("issued_at") - public Optional getIssuedAt() { - return issuedAt; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("last_used_at") - public OptionalNullable getLastUsedAt() { - if (lastUsedAt == null) { - return OptionalNullable.absent(); - } - return lastUsedAt; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("expires_at") - private OptionalNullable _getExpiresAt() { - return expiresAt; - } - - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("last_used_at") - private OptionalNullable _getLastUsedAt() { - return lastUsedAt; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof FederatedConnectionTokenSet && equalTo((FederatedConnectionTokenSet) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(FederatedConnectionTokenSet other) { - return id.equals(other.id) - && connection.equals(other.connection) - && scope.equals(other.scope) - && expiresAt.equals(other.expiresAt) - && issuedAt.equals(other.issuedAt) - && lastUsedAt.equals(other.lastUsedAt); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash(this.id, this.connection, this.scope, this.expiresAt, this.issuedAt, this.lastUsedAt); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static Builder builder() { - return new Builder(); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional id = Optional.empty(); - - private Optional connection = Optional.empty(); - - private Optional scope = Optional.empty(); - - private OptionalNullable expiresAt = OptionalNullable.absent(); - - private Optional issuedAt = Optional.empty(); - - private OptionalNullable lastUsedAt = OptionalNullable.absent(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(FederatedConnectionTokenSet other) { - id(other.getId()); - connection(other.getConnection()); - scope(other.getScope()); - expiresAt(other.getExpiresAt()); - issuedAt(other.getIssuedAt()); - lastUsedAt(other.getLastUsedAt()); - return this; - } - - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(Optional id) { - this.id = id; - return this; - } - - public Builder id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @JsonSetter(value = "connection", nulls = Nulls.SKIP) - public Builder connection(Optional connection) { - this.connection = connection; - return this; - } - - public Builder connection(String connection) { - this.connection = Optional.ofNullable(connection); - return this; - } - - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { - this.scope = scope; - return this; - } - - public Builder scope(String scope) { - this.scope = Optional.ofNullable(scope); - return this; - } - - @JsonSetter(value = "expires_at", nulls = Nulls.SKIP) - public Builder expiresAt(@Nullable OptionalNullable expiresAt) { - this.expiresAt = expiresAt; - return this; - } - - public Builder expiresAt(OffsetDateTime expiresAt) { - this.expiresAt = OptionalNullable.of(expiresAt); - return this; - } - - public Builder expiresAt(Optional expiresAt) { - if (expiresAt.isPresent()) { - this.expiresAt = OptionalNullable.of(expiresAt.get()); - } else { - this.expiresAt = OptionalNullable.absent(); - } - return this; - } - - public Builder expiresAt(com.auth0.client.mgmt.core.Nullable expiresAt) { - if (expiresAt.isNull()) { - this.expiresAt = OptionalNullable.ofNull(); - } else if (expiresAt.isEmpty()) { - this.expiresAt = OptionalNullable.absent(); - } else { - this.expiresAt = OptionalNullable.of(expiresAt.get()); - } - return this; - } - - @JsonSetter(value = "issued_at", nulls = Nulls.SKIP) - public Builder issuedAt(Optional issuedAt) { - this.issuedAt = issuedAt; - return this; - } - - public Builder issuedAt(OffsetDateTime issuedAt) { - this.issuedAt = Optional.ofNullable(issuedAt); - return this; - } - - @JsonSetter(value = "last_used_at", nulls = Nulls.SKIP) - public Builder lastUsedAt(@Nullable OptionalNullable lastUsedAt) { - this.lastUsedAt = lastUsedAt; - return this; - } - - public Builder lastUsedAt(OffsetDateTime lastUsedAt) { - this.lastUsedAt = OptionalNullable.of(lastUsedAt); - return this; - } - - public Builder lastUsedAt(Optional lastUsedAt) { - if (lastUsedAt.isPresent()) { - this.lastUsedAt = OptionalNullable.of(lastUsedAt.get()); - } else { - this.lastUsedAt = OptionalNullable.absent(); - } - return this; - } - - public Builder lastUsedAt(com.auth0.client.mgmt.core.Nullable lastUsedAt) { - if (lastUsedAt.isNull()) { - this.lastUsedAt = OptionalNullable.ofNull(); - } else if (lastUsedAt.isEmpty()) { - this.lastUsedAt = OptionalNullable.absent(); - } else { - this.lastUsedAt = OptionalNullable.of(lastUsedAt.get()); - } - return this; - } - - 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/FlowAction.java b/src/main/java/com/auth0/client/mgmt/types/FlowAction.java index e87c6ae84..47dd8aeed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowAction.java @@ -266,18 +266,6 @@ static final class Deserializer extends StdDeserializer { @java.lang.Override public FlowAction deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionActivecampaign.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAirtable.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAuth0.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -288,10 +276,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionClearbit.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -302,10 +286,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionFlow.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -326,18 +306,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionHubspot.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJson.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJwt.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -358,18 +326,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionOtp.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionPipedrive.class)); - } catch (RuntimeException e) { - } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionSalesforce.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -390,10 +346,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionStripe.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -404,10 +356,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionTwilio.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -418,10 +366,6 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionXml.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("id") && ((Map) value).containsKey("type") @@ -432,6 +376,62 @@ public FlowAction deserialize(JsonParser p, DeserializationContext context) thro } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionActivecampaign.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAirtable.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionAuth0.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionClearbit.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionFlow.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionHubspot.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJson.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionJwt.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionOtp.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionPipedrive.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionSalesforce.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionStripe.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionTwilio.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowActionXml.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } 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 337c9f3f5..2d7694b92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java @@ -273,7 +273,6 @@ public Builder from(FlowExecutionSummary other) { } /** - *

Flow execution identifier

*

Flow execution identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -285,7 +284,6 @@ public TraceIdStage id(@NotNull String id) { } /** - *

Trace id

*

Trace id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -297,7 +295,6 @@ public StatusStage traceId(@NotNull String traceId) { } /** - *

Execution status

*

Execution status

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -309,7 +306,6 @@ public CreatedAtStage status(@NotNull String status) { } /** - *

The ISO 8601 formatted date when this flow execution was created.

*

The ISO 8601 formatted date when this flow execution was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -321,7 +317,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this flow execution was updated.

*

The ISO 8601 formatted date when this flow execution was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ae3c4a6ea..a80fb7edb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java @@ -298,7 +298,6 @@ public Builder from(FlowsVaultConnectionSummary other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -310,7 +309,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -322,7 +320,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -334,7 +331,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -346,7 +342,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -358,7 +353,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0c93fddf4..26ba41683 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java @@ -238,7 +238,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -264,7 +263,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 fd6b36e85..3a5eee56b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java @@ -237,7 +237,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -263,7 +262,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f2fe62382..95296975d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetClientRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 8d0c358db..104f1e583 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetConnectionRequestParameters( /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 2b890744e..26ebe035b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java @@ -379,7 +379,6 @@ public Builder from(GetCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -391,7 +390,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -403,7 +401,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4da8a652c..b2a47cf67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private GetDailyStatsRequestParameters( /** * @return Optional first day of the date range (inclusive) in YYYYMMDD format. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Optional last day of the date range (inclusive) in YYYYMMDD format. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("to") public OptionalNullable getTo() { if (to == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTo() { return to; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("to") + private OptionalNullable _getTo() { + return to; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java index 007d88de9..6dbc8dfe9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java @@ -99,7 +99,6 @@ public Builder from(GetDefaultCanonicalDomainResponseContent other) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java index 9b94899c6..11b171773 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java @@ -380,7 +380,6 @@ public Builder from(GetDefaultCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -392,7 +391,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -404,7 +402,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 09ed2315a..e4c2251aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java @@ -350,7 +350,6 @@ public Builder from(GetDirectoryProvisioningResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -362,7 +361,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -374,7 +372,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -386,7 +383,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -398,7 +394,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -410,7 +405,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ 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 089e4474d..9548c0261 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java @@ -262,7 +262,6 @@ public Builder from(GetEncryptionKeyResponseContent other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -288,7 +287,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -300,7 +298,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b4c23a92b..f2430a123 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java @@ -204,7 +204,6 @@ public Builder from(GetEventStreamDeliveryHistoryResponseContent other) { } /** - *

Unique identifier for the delivery

*

Unique identifier for the delivery

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -216,7 +215,6 @@ public EventStreamIdStage id(@NotNull String id) { } /** - *

Unique identifier for the event stream.

*

Unique identifier for the event stream.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ca0f95f13..eaf0b7070 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java @@ -291,7 +291,6 @@ public Builder from(GetFlowExecutionResponseContent other) { } /** - *

Flow execution identifier

*

Flow execution identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -303,7 +302,6 @@ public TraceIdStage id(@NotNull String id) { } /** - *

Trace id

*

Trace id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -315,7 +313,6 @@ public StatusStage traceId(@NotNull String traceId) { } /** - *

Execution status

*

Execution status

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -327,7 +324,6 @@ public CreatedAtStage status(@NotNull String status) { } /** - *

The ISO 8601 formatted date when this flow execution was created.

*

The ISO 8601 formatted date when this flow execution was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -339,7 +335,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this flow execution was updated.

*

The ISO 8601 formatted date when this flow execution was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 6e820c6b1..96abbd4a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java @@ -3,12 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,6 +46,12 @@ public Optional> getHydrate() { return hydrate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3cb76b176..dc73c43fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java @@ -323,7 +323,6 @@ public Builder from(GetFlowsVaultConnectionResponseContent other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -335,7 +334,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -347,7 +345,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -359,7 +356,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -371,7 +367,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -383,7 +378,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 01fd330a6..91045dd64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java @@ -3,12 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,6 +46,12 @@ public Optional> getHydrate() { return hydrate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 a3a53d517..f2e3c1eb0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java @@ -249,7 +249,6 @@ public Builder from(GetGroupResponseContent other) { } /** - *

Unique identifier for the group (service-generated).

*

Unique identifier for the group (service-generated).

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -261,7 +260,6 @@ public NameStage id(@NotNull String id) { } /** - *

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

*

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -273,7 +271,6 @@ public TenantNameStage name(@NotNull String name) { } /** - *

Identifier for the tenant this group belongs to.

*

Identifier for the tenant this group belongs to.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -285,7 +282,6 @@ public CreatedAtStage tenantName(@NotNull String tenantName) { } /** - *

Timestamp of when the group was created.

*

Timestamp of when the group was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -297,7 +293,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Timestamp of when the group was last updated.

*

Timestamp of when the group was last updated.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 d03ad6a0c..3e6ad5a5c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java @@ -224,7 +224,6 @@ public Builder from(GetGuardianEnrollmentResponseContent other) { } /** - *

ID for this enrollment.

*

ID for this enrollment.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a884104b1..bc58afe5f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(GetGuardianFactorPhoneTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 59b52b08f..863ed1fde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(GetGuardianFactorSmsTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1e4c456f3..0cd53c4b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -34,7 +35,8 @@ private GetHookRequestParameters(OptionalNullable fields, Map getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -42,6 +44,12 @@ public OptionalNullable getFields() { return fields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7818cc5e3..182ff2013 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java @@ -217,7 +217,6 @@ public Builder from(GetJobGenericErrorResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -229,7 +228,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -241,7 +239,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9a9fa1ade..af550b467 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java @@ -331,7 +331,6 @@ public Builder from(GetJobResponseContent other) { } /** - *

Status of this job.

*

Status of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +342,6 @@ public TypeStage status(@NotNull String status) { } /** - *

Type of job this is.

*

Type of job this is.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +353,6 @@ public IdStage type(@NotNull String type) { } /** - *

ID of this job.

*

ID of this job.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java index 180a87756..974ae4a28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationAllConnectionResponseContent.java @@ -260,7 +260,6 @@ public Builder from(GetOrganizationAllConnectionResponseContent other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f5dfbd36a..0100ba467 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java @@ -219,7 +219,6 @@ public Builder from(GetOrganizationDiscoveryDomainByNameResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c3d561e73..5f9c41455 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java @@ -219,7 +219,6 @@ public Builder from(GetOrganizationDiscoveryDomainResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1220fbf59..b6e748799 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java @@ -219,7 +219,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java index fc4fa4f3e..87fe4fc20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRateLimitPolicyResponseContent.java @@ -231,7 +231,6 @@ public Builder from(GetRateLimitPolicyResponseContent other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +256,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java index b94124920..c01d14ab5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -57,7 +58,7 @@ private GetRefreshTokensRequestParameters( /** * @return ID of the user whose refresh tokens to retrieve. Required. */ - @JsonIgnore + @JsonProperty("user_id") public String getUserId() { return userId; } @@ -65,7 +66,8 @@ public String getUserId() { /** * @return Filter results by client ID. Only valid when user_id is provided. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -76,7 +78,8 @@ public OptionalNullable getClientId() { /** * @return An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -87,7 +90,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -98,7 +102,8 @@ public OptionalNullable getTake() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -109,7 +114,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -117,6 +123,36 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -254,7 +290,6 @@ public Builder from(GetRefreshTokensRequestParameters other) { } /** - *

ID of the user whose refresh tokens to retrieve. Required.

*

ID of the user whose refresh tokens to retrieve. Required.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 0066656f2..2866dbaa3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -35,7 +36,8 @@ private GetResourceServerRequestParameters( /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -43,6 +45,12 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 656f59a9b..7279ba8ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -99,7 +99,6 @@ public Builder from(GetRiskAssessmentsSettingsNewDeviceResponseContent other) { } /** - *

Length of time to remember devices for, in days.

*

Length of time to remember devices for, in days.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4de912ffb..fd0cb4a6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java @@ -98,7 +98,6 @@ public Builder from(GetRiskAssessmentsSettingsResponseContent other) { } /** - *

Whether or not risk assessment is enabled.

*

Whether or not risk assessment is enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 259dd8ad5..3f32553b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetRuleRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 9e45660ee..74f8c418d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java @@ -284,7 +284,6 @@ public Builder from(GetScimConfigurationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -332,7 +328,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +339,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +350,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ 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 8e0d7419c..9efbf8a9a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java @@ -349,7 +349,6 @@ public Builder from(GetSigningKeysResponseContent other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -361,7 +360,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +371,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +382,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7ef40212e..29d2e1356 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java @@ -593,7 +593,6 @@ public Builder from(GetUserAuthenticationMethodResponseContent other) { } /** - *

The ID of the authentication method (auto generated)

*

The ID of the authentication method (auto generated)

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -612,7 +611,6 @@ public CreatedAtStage type(@NotNull AuthenticationMethodTypeEnum type) { } /** - *

Authenticator creation date

*

Authenticator creation date

* @return Reference to {@code this} so that method calls can be chained together. */ 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 78f35b02d..b7cd5485c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -40,7 +41,8 @@ private GetUserRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -51,7 +53,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -59,6 +62,18 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 b7dd8900e..be1fb69ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java +++ b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java @@ -139,7 +139,6 @@ public Builder from(GuardianFactor other) { } /** - *

Whether this factor is enabled (true) or disabled (false).

*

Whether this factor is enabled (true) or disabled (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java index 6aa13b97f..804280994 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java @@ -21,8 +21,6 @@ public interface IConnectionOptionsCommonOidc { Optional getDpopSigningAlg(); - OptionalNullable getFederatedConnectionsAccessTokens(); - Optional getIconUrl(); Optional getIdTokenSessionExpirySupported(); 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 361ff9329..6a14e526b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Identity.java +++ b/src/main/java/com/auth0/client/mgmt/types/Identity.java @@ -142,7 +142,6 @@ public Builder from(Identity other) { } /** - *

user_id of the identity to be verified.

*

user_id of the identity to be verified.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a7ca3b071..aa3bb3dd3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java @@ -263,7 +263,6 @@ public Builder from(ImportEncryptionKeyResponseContent other) { } /** - *

Key ID

*

Key ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -289,7 +288,6 @@ public CreatedAtStage state(@NotNull EncryptionKeyState state) { } /** - *

Key creation timestamp

*

Key creation timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -301,7 +299,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

Key update timestamp

*

Key update timestamp

* @return Reference to {@code this} so that method calls can be chained together. */ 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 53965b748..71b17a0fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java @@ -98,7 +98,6 @@ public Builder from(LinkedClientConfiguration other) { } /** - *

The ID of the linked client.

*

The ID of the linked client.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 96ae64a1f..dee72554d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListActionsRequestParameters( /** * @return An actions extensibility point. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") public OptionalNullable getTriggerId() { if (triggerId == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getTriggerId() { /** * @return The name of the action to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("actionName") public OptionalNullable getActionName() { if (actionName == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getActionName() { /** * @return Optional filter to only retrieve actions that are deployed. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("deployed") public OptionalNullable getDeployed() { if (deployed == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getDeployed() { /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getPage() { /** * @return The maximum number of results to be returned by the server in single response. 20 by default */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getPerPage() { /** * @return Optional. When true, return only installed actions. When false, return only custom actions. Returns all actions by default. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("installed") public OptionalNullable getInstalled() { if (installed == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getInstalled() { return installed; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") + private OptionalNullable _getTriggerId() { + return triggerId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("actionName") + private OptionalNullable _getActionName() { + return actionName; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("deployed") + private OptionalNullable _getDeployed() { + return deployed; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("installed") + private OptionalNullable _getInstalled() { + return installed; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 0e14a982b..05bdd9431 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -60,7 +61,8 @@ private ListClientGrantsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -71,7 +73,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -82,7 +85,8 @@ public OptionalNullable getTake() { /** * @return Optional filter on audience. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") public OptionalNullable getAudience() { if (audience == null) { return OptionalNullable.absent(); @@ -93,7 +97,8 @@ public OptionalNullable getAudience() { /** * @return Optional filter on client_id. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -104,7 +109,8 @@ public OptionalNullable getClientId() { /** * @return Optional filter on allow_any_organization. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allow_any_organization") public OptionalNullable getAllowAnyOrganization() { if (allowAnyOrganization == null) { return OptionalNullable.absent(); @@ -115,7 +121,8 @@ public OptionalNullable getAllowAnyOrganization() { /** * @return The type of application access the client grant allows. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("subject_type") public OptionalNullable getSubjectType() { if (subjectType == null) { return OptionalNullable.absent(); @@ -126,7 +133,8 @@ public OptionalNullable getSubjectType() { /** * @return Applies this client grant as the default for all clients in the specified group. The only accepted value is third_party_clients, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with client_id. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_for") public OptionalNullable getDefaultFor() { if (defaultFor == null) { return OptionalNullable.absent(); @@ -134,6 +142,48 @@ public OptionalNullable getDefaultFor() { return defaultFor; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") + private OptionalNullable _getAudience() { + return audience; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allow_any_organization") + private OptionalNullable _getAllowAnyOrganization() { + return allowAnyOrganization; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("subject_type") + private OptionalNullable _getSubjectType() { + return subjectType; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_for") + private OptionalNullable _getDefaultFor() { + return defaultFor; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 117c634b1..044877b88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -72,7 +73,8 @@ private ListClientsRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -83,7 +85,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -94,7 +97,8 @@ public OptionalNullable getIncludeFields() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -105,7 +109,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Default value is 50, maximum value is 100 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -116,7 +121,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -127,7 +133,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on the global client parameter. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_global") public OptionalNullable getIsGlobal() { if (isGlobal == null) { return OptionalNullable.absent(); @@ -138,7 +145,8 @@ public OptionalNullable getIsGlobal() { /** * @return Optional filter on whether or not a client is a first-party client. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_first_party") public OptionalNullable getIsFirstParty() { if (isFirstParty == null) { return OptionalNullable.absent(); @@ -149,7 +157,8 @@ public OptionalNullable getIsFirstParty() { /** * @return Optional filter by a comma-separated list of application types. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("app_type") public OptionalNullable getAppType() { if (appType == null) { return OptionalNullable.absent(); @@ -160,7 +169,8 @@ public OptionalNullable getAppType() { /** * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_client_id") public OptionalNullable getExternalClientId() { if (externalClientId == null) { return OptionalNullable.absent(); @@ -171,7 +181,8 @@ public OptionalNullable getExternalClientId() { /** * @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 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") public OptionalNullable getQ() { if (q == null) { return OptionalNullable.absent(); @@ -179,6 +190,66 @@ public OptionalNullable getQ() { return q; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_global") + private OptionalNullable _getIsGlobal() { + return isGlobal; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("is_first_party") + private OptionalNullable _getIsFirstParty() { + return isFirstParty; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("app_type") + private OptionalNullable _getAppType() { + return appType; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_client_id") + private OptionalNullable _getExternalClientId() { + return externalClientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 ae2a51433..211dd7228 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListConnectionProfileRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 5. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 878653363..c648b0497 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -69,7 +71,8 @@ public Optional> getStrategy() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -80,7 +83,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -91,7 +95,8 @@ public OptionalNullable getTake() { /** * @return Provide the name of the connection to retrieve */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") public OptionalNullable getName() { if (name == null) { return OptionalNullable.absent(); @@ -102,7 +107,8 @@ public OptionalNullable getName() { /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -113,7 +119,8 @@ public OptionalNullable getFields() { /** * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -121,6 +128,42 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("strategy") + private Optional> _getStrategy() { + return strategy; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") + private OptionalNullable _getName() { + return name; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3ea7c8556..0d559cc37 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListCustomDomainsRequestParameters( /** * @return Query in Lucene query string syntax. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") public OptionalNullable getQ() { if (q == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getQ() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getIncludeFields() { /** * @return Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getSort() { return sort; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 c20cc93c0..adc4985ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -64,7 +65,8 @@ private ListDeviceCredentialsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -75,7 +77,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. There is a maximum of 1000 results allowed from this endpoint. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -86,7 +89,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -97,7 +101,8 @@ public OptionalNullable getIncludeTotals() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -108,7 +113,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -119,7 +125,8 @@ public OptionalNullable getIncludeFields() { /** * @return user_id of the devices to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") public OptionalNullable getUserId() { if (userId == null) { return OptionalNullable.absent(); @@ -130,7 +137,8 @@ public OptionalNullable getUserId() { /** * @return client_id of the devices to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -141,7 +149,8 @@ public OptionalNullable getClientId() { /** * @return Type of credentials to retrieve. Must be public_key, refresh_token or rotating_refresh_token. The property will default to refresh_token when paging is requested */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("type") public OptionalNullable getType() { if (type == null) { return OptionalNullable.absent(); @@ -149,6 +158,54 @@ public OptionalNullable getType() { return type; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") + private OptionalNullable _getUserId() { + return userId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("type") + private OptionalNullable _getType() { + return type; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 4a2c0d723..13b5ef65a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListEventStreamsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7eb337832..6c63b57f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -65,7 +67,8 @@ public Optional> getHydrate() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -76,7 +79,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -87,7 +91,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -98,7 +103,8 @@ public OptionalNullable getIncludeTotals() { /** * @return flag to filter by sync/async flows */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("synchronous") public OptionalNullable getSynchronous() { if (synchronous == null) { return OptionalNullable.absent(); @@ -106,6 +112,36 @@ public OptionalNullable getSynchronous() { return synchronous; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("synchronous") + private OptionalNullable _getSynchronous() { + return synchronous; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 42e908236..fc4c1085c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -61,7 +63,8 @@ public Optional> getHydrate() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -72,7 +75,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -83,7 +87,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -91,6 +96,30 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("hydrate") + private Optional> _getHydrate() { + return hydrate; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 1357e3dc8..a3adbbc74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -64,7 +65,8 @@ private ListGroupsRequestParameters( /** * @return Filter groups by connection ID. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_id") public OptionalNullable getConnectionId() { if (connectionId == null) { return OptionalNullable.absent(); @@ -75,7 +77,8 @@ public OptionalNullable getConnectionId() { /** * @return Filter groups by name. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") public OptionalNullable getName() { if (name == null) { return OptionalNullable.absent(); @@ -86,7 +89,8 @@ public OptionalNullable getName() { /** * @return Filter groups by external ID. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_id") public OptionalNullable getExternalId() { if (externalId == null) { return OptionalNullable.absent(); @@ -97,7 +101,8 @@ public OptionalNullable getExternalId() { /** * @return Search for groups by name or external ID. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") public OptionalNullable getSearch() { if (search == null) { return OptionalNullable.absent(); @@ -108,7 +113,8 @@ public OptionalNullable getSearch() { /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -119,7 +125,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -130,7 +137,8 @@ public OptionalNullable getIncludeFields() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -141,7 +149,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -149,6 +158,54 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_id") + private OptionalNullable _getConnectionId() { + return connectionId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") + private OptionalNullable _getName() { + return name; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_id") + private OptionalNullable _getExternalId() { + return externalId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") + private OptionalNullable _getSearch() { + return search; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 ed25b0781..d6245fcda 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListHooksRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on whether a hook is enabled (true) or disabled (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") public OptionalNullable getEnabled() { if (enabled == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getEnabled() { /** * @return Comma-separated list of fields to include in the result. Leave empty to retrieve all fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getFields() { /** * @return Retrieves hooks that match the trigger */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") public OptionalNullable getTriggerId() { if (triggerId == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getTriggerId() { return triggerId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") + private OptionalNullable _getEnabled() { + return enabled; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("triggerId") + private OptionalNullable _getTriggerId() { + return triggerId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 ba25c6f20..b31f9c6e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -60,7 +61,8 @@ private ListLogsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -71,7 +73,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -82,7 +85,8 @@ public OptionalNullable getPerPage() { /** * @return Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -93,7 +97,8 @@ public OptionalNullable getSort() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -104,7 +109,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false) */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -115,7 +121,8 @@ public OptionalNullable getIncludeFields() { /** * @return Return results as an array when false (default). Return results inside an object that also contains a total result count when true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -128,7 +135,8 @@ public OptionalNullable getIncludeTotals() { * If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". * Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") public OptionalNullable getSearch() { if (search == null) { return OptionalNullable.absent(); @@ -136,6 +144,48 @@ public OptionalNullable getSearch() { return search; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search") + private OptionalNullable _getSearch() { + return search; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 022fbef64..e24889d00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListNetworkAclsRequestParameters( /** * @return Use this field to request a specific page of the list results. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return The amount of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 17ae4f5ba..c5b6cabd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListOrganizationsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getTake() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getSort() { return sort; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java index 4cbdca960..54412055d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRateLimitPoliciesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -52,7 +53,8 @@ private ListRateLimitPoliciesRequestParameters( /** * @return The API protected by the Rate Limit Policy. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("resource") public OptionalNullable getResource() { if (resource == null) { return OptionalNullable.absent(); @@ -63,7 +65,8 @@ public OptionalNullable getResource() { /** * @return The consumer to which the rate limit policy applies. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer") public OptionalNullable getConsumer() { if (consumer == null) { return OptionalNullable.absent(); @@ -74,7 +77,8 @@ public OptionalNullable getConsumer() { /** * @return Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer_selector") public OptionalNullable getConsumerSelector() { if (consumerSelector == null) { return OptionalNullable.absent(); @@ -85,7 +89,8 @@ public OptionalNullable getConsumerSelector() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -96,7 +101,8 @@ public OptionalNullable getTake() { /** * @return Cursor for pagination. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -104,6 +110,36 @@ public OptionalNullable getFrom() { return from; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("resource") + private OptionalNullable _getResource() { + return resource; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer") + private OptionalNullable _getConsumer() { + return consumer; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consumer_selector") + private OptionalNullable _getConsumerSelector() { + return consumerSelector; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 40f6d3a75..333a1d8d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -65,7 +67,8 @@ public Optional> getIdentifiers() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -76,7 +79,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -87,7 +91,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -98,7 +103,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -106,6 +112,36 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("identifiers") + private Optional> _getIdentifiers() { + return identifiers; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 7dd16a6db..70e0ac54a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListRolesRequestParameters( /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on name (case-insensitive). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name_filter") public OptionalNullable getNameFilter() { if (nameFilter == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getNameFilter() { return nameFilter; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name_filter") + private OptionalNullable _getNameFilter() { + return nameFilter; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 821adfc61..381a3a66d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListRulesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Optional filter on whether a rule is enabled (true) or disabled (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") public OptionalNullable getEnabled() { if (enabled == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getEnabled() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getIncludeFields() { return includeFields; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled") + private OptionalNullable _getEnabled() { + return enabled; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 ebd851fde..c0ba0e717 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListSelfServiceProfilesRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 d4c57394c..dbc25ae60 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListUserAttributeProfileRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 5. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 279712095..75e6e03a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -41,7 +42,7 @@ private ListUserBlocksByIdentifierRequestParameters( /** * @return Should be any of a username, phone number, or email. */ - @JsonIgnore + @JsonProperty("identifier") public String getIdentifier() { return identifier; } @@ -50,7 +51,8 @@ public String getIdentifier() { * @return 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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") public OptionalNullable getConsiderBruteForceEnablement() { if (considerBruteForceEnablement == null) { return OptionalNullable.absent(); @@ -58,6 +60,12 @@ public OptionalNullable getConsiderBruteForceEnablement() { return considerBruteForceEnablement; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") + private OptionalNullable _getConsiderBruteForceEnablement() { + return considerBruteForceEnablement; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -138,7 +146,6 @@ public Builder from(ListUserBlocksByIdentifierRequestParameters other) { } /** - *

Should be any of a username, phone number, or email.

*

Should be any of a username, phone number, or email.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 6e0a7a172..2311b54a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -36,7 +37,8 @@ private ListUserBlocksRequestParameters( * @return 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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") public OptionalNullable getConsiderBruteForceEnablement() { if (considerBruteForceEnablement == null) { return OptionalNullable.absent(); @@ -44,6 +46,12 @@ public OptionalNullable getConsiderBruteForceEnablement() { return considerBruteForceEnablement; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("consider_brute_force_enablement") + private OptionalNullable _getConsiderBruteForceEnablement() { + return considerBruteForceEnablement; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 df0d014e8..7af9de128 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -56,7 +57,8 @@ private ListUserGrantsRequestParameters( /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -67,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -78,7 +81,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,7 +93,8 @@ public OptionalNullable getIncludeTotals() { /** * @return user_id of the grants to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") public OptionalNullable getUserId() { if (userId == null) { return OptionalNullable.absent(); @@ -100,7 +105,8 @@ public OptionalNullable getUserId() { /** * @return client_id of the grants to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") public OptionalNullable getClientId() { if (clientId == null) { return OptionalNullable.absent(); @@ -111,7 +117,8 @@ public OptionalNullable getClientId() { /** * @return audience of the grants to retrieve. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") public OptionalNullable getAudience() { if (audience == null) { return OptionalNullable.absent(); @@ -119,6 +126,42 @@ public OptionalNullable getAudience() { return audience; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("user_id") + private OptionalNullable _getUserId() { + return userId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("audience") + private OptionalNullable _getAudience() { + return audience; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 4d1448bb9..e42404bce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,8 @@ private ListUsersByEmailRequestParameters( /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -56,7 +58,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -67,11 +70,23 @@ public OptionalNullable getIncludeFields() { /** * @return Email address to search for (case-sensitive). */ - @JsonIgnore + @JsonProperty("email") public String getEmail() { return email; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -162,7 +177,6 @@ public Builder from(ListUsersByEmailRequestParameters other) { } /** - *

Email address to search for (case-sensitive).

*

Email address to search for (case-sensitive).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4e737df5c..41d6d07b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -72,7 +73,8 @@ private ListUsersRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -83,7 +85,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -94,7 +97,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -105,7 +109,8 @@ public OptionalNullable getIncludeTotals() { /** * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -116,7 +121,8 @@ public OptionalNullable getSort() { /** * @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" */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection") public OptionalNullable getConnection() { if (connection == null) { return OptionalNullable.absent(); @@ -127,7 +133,8 @@ public OptionalNullable getConnection() { /** * @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. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -138,7 +145,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -149,7 +157,8 @@ public OptionalNullable getIncludeFields() { /** * @return Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") public OptionalNullable getQ() { if (q == null) { return OptionalNullable.absent(); @@ -160,7 +169,8 @@ public OptionalNullable getQ() { /** * @return The version of the search engine */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search_engine") public OptionalNullable getSearchEngine() { if (searchEngine == null) { return OptionalNullable.absent(); @@ -171,7 +181,8 @@ public OptionalNullable getSearchEngine() { /** * @return If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("primary_order") public OptionalNullable getPrimaryOrder() { if (primaryOrder == null) { return OptionalNullable.absent(); @@ -179,6 +190,66 @@ public OptionalNullable getPrimaryOrder() { return primaryOrder; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection") + private OptionalNullable _getConnection() { + return connection; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("q") + private OptionalNullable _getQ() { + return q; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("search_engine") + private OptionalNullable _getSearchEngine() { + return searchEngine; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("primary_order") + private OptionalNullable _getPrimaryOrder() { + return primaryOrder; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 3aec249fe..caf2f7ba5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java @@ -114,7 +114,6 @@ public Builder from(LogStreamDatadogSink other) { } /** - *

Datadog API Key

*

Datadog API Key

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9bb5bad15..73a8dca76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java @@ -142,7 +142,6 @@ public Builder from(LogStreamEventBridgeSink other) { } /** - *

AWS account ID

*

AWS account ID

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b77dd9f82..160a01a37 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java @@ -167,7 +167,6 @@ public Builder from(LogStreamEventGridSink other) { } /** - *

Subscription ID

*

Subscription ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -187,7 +186,6 @@ public AzureResourceGroupStage azureRegion(@NotNull LogStreamEventGridRegionEnum } /** - *

Resource Group

*

Resource Group

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2101e54cb..751498167 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java @@ -194,7 +194,6 @@ public Builder from(LogStreamHttpSink other) { } /** - *

HTTP endpoint

*

HTTP endpoint

* @return Reference to {@code this} so that method calls can be chained together. */ 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 27482603d..74cfcc738 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java @@ -180,7 +180,6 @@ public MixpanelProjectIdStage mixpanelRegion(@NotNull LogStreamMixpanelRegionEnu } /** - *

Mixpanel Project Id

*

Mixpanel Project Id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -192,7 +191,6 @@ public MixpanelServiceAccountUsernameStage mixpanelProjectId(@NotNull String mix } /** - *

Mixpanel Service Account Username

*

Mixpanel Service Account Username

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +204,6 @@ public MixpanelServiceAccountPasswordStage mixpanelServiceAccountUsername( } /** - *

Mixpanel Service Account Password

*

Mixpanel Service Account Password

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b1e5e7b57..abf0be0f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java @@ -177,7 +177,6 @@ public MixpanelProjectIdStage mixpanelRegion(@NotNull LogStreamMixpanelRegionEnu } /** - *

Mixpanel Project Id

*

Mixpanel Project Id

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -189,7 +188,6 @@ public MixpanelServiceAccountUsernameStage mixpanelProjectId(@NotNull String mix } /** - *

Mixpanel Service Account Username

*

Mixpanel Service Account Username

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7ec6a3061..7fec818b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java @@ -98,7 +98,6 @@ public Builder from(LogStreamSegmentSinkWriteKey other) { } /** - *

Segment write key

*

Segment write key

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java index 8cb1a4cbb..4288b9116 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSinkPatch.java @@ -144,10 +144,6 @@ public LogStreamSinkPatch deserialize(JsonParser p, DeserializationContext conte } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, LogStreamSegmentSink.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("mixpanelRegion") && ((Map) value).containsKey("mixpanelProjectId") @@ -157,6 +153,10 @@ public LogStreamSinkPatch deserialize(JsonParser p, DeserializationContext conte } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, LogStreamSegmentSink.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } 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 6d099dbdc..1c4a03fce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java @@ -170,7 +170,6 @@ public Builder from(LogStreamSplunkSink other) { } /** - *

Splunk URL Endpoint

*

Splunk URL Endpoint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -182,7 +181,6 @@ public SplunkPortStage splunkDomain(@NotNull String splunkDomain) { } /** - *

Port

*

Port

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -194,7 +192,6 @@ public SplunkTokenStage splunkPort(@NotNull String splunkPort) { } /** - *

Splunk token

*

Splunk token

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -206,7 +203,6 @@ public SplunkSecureStage splunkToken(@NotNull String splunkToken) { } /** - *

Verify TLS certificate

*

Verify TLS certificate

* @return Reference to {@code this} so that method calls can be chained together. */ 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 8c8bcaeae..9e70ac49a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java @@ -98,7 +98,6 @@ public Builder from(LogStreamSumoSink other) { } /** - *

HTTP Source Address

*

HTTP Source Address

* @return Reference to {@code this} so that method calls can be chained together. */ 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 5ba55c50c..381be950c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -23,6 +23,8 @@ public final class NetworkAclMatch { private final Optional> asns; + private final Optional> auth0Managed; + private final Optional> geoCountryCodes; private final Optional> geoSubdivisionCodes; @@ -47,6 +49,7 @@ public final class NetworkAclMatch { private NetworkAclMatch( Optional> asns, + Optional> auth0Managed, Optional> geoCountryCodes, Optional> geoSubdivisionCodes, Optional> ipv4Cidrs, @@ -59,6 +62,7 @@ private NetworkAclMatch( Optional> connectingIpv6Cidrs, Map additionalProperties) { this.asns = asns; + this.auth0Managed = auth0Managed; this.geoCountryCodes = geoCountryCodes; this.geoSubdivisionCodes = geoSubdivisionCodes; this.ipv4Cidrs = ipv4Cidrs; @@ -77,6 +81,11 @@ public Optional> getAsns() { return asns; } + @JsonProperty("auth0_managed") + public Optional> getAuth0Managed() { + return auth0Managed; + } + @JsonProperty("geo_country_codes") public Optional> getGeoCountryCodes() { return geoCountryCodes; @@ -140,6 +149,7 @@ public Map getAdditionalProperties() { private boolean equalTo(NetworkAclMatch other) { return asns.equals(other.asns) + && auth0Managed.equals(other.auth0Managed) && geoCountryCodes.equals(other.geoCountryCodes) && geoSubdivisionCodes.equals(other.geoSubdivisionCodes) && ipv4Cidrs.equals(other.ipv4Cidrs) @@ -156,6 +166,7 @@ private boolean equalTo(NetworkAclMatch other) { public int hashCode() { return Objects.hash( this.asns, + this.auth0Managed, this.geoCountryCodes, this.geoSubdivisionCodes, this.ipv4Cidrs, @@ -181,6 +192,8 @@ public static Builder builder() { public static final class Builder { private Optional> asns = Optional.empty(); + private Optional> auth0Managed = Optional.empty(); + private Optional> geoCountryCodes = Optional.empty(); private Optional> geoSubdivisionCodes = Optional.empty(); @@ -208,6 +221,7 @@ private Builder() {} public Builder from(NetworkAclMatch other) { asns(other.getAsns()); + auth0Managed(other.getAuth0Managed()); geoCountryCodes(other.getGeoCountryCodes()); geoSubdivisionCodes(other.getGeoSubdivisionCodes()); ipv4Cidrs(other.getIpv4Cidrs()); @@ -232,6 +246,17 @@ public Builder asns(List asns) { return this; } + @JsonSetter(value = "auth0_managed", nulls = Nulls.SKIP) + public Builder auth0Managed(Optional> auth0Managed) { + this.auth0Managed = auth0Managed; + return this; + } + + public Builder auth0Managed(List auth0Managed) { + this.auth0Managed = Optional.ofNullable(auth0Managed); + return this; + } + @JsonSetter(value = "geo_country_codes", nulls = Nulls.SKIP) public Builder geoCountryCodes(Optional> geoCountryCodes) { this.geoCountryCodes = geoCountryCodes; @@ -345,6 +370,7 @@ public Builder connectingIpv6Cidrs(List connectingIpv6Cidrs) { public NetworkAclMatch build() { return new NetworkAclMatch( asns, + auth0Managed, geoCountryCodes, geoSubdivisionCodes, ipv4Cidrs, diff --git a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java index 2c613614e..599e65359 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java @@ -92,9 +92,6 @@ public final class OauthScope { public static final OauthScope READ_ROLE_MEMBERS = new OauthScope(Value.READ_ROLE_MEMBERS, "read:role_members"); - public static final OauthScope DELETE_FEDERATED_CONNECTIONS_TOKENS = - new OauthScope(Value.DELETE_FEDERATED_CONNECTIONS_TOKENS, "delete:federated_connections_tokens"); - public static final OauthScope READ_SELF_SERVICE_PROFILES = new OauthScope(Value.READ_SELF_SERVICE_PROFILES, "read:self_service_profiles"); @@ -380,9 +377,6 @@ public final class OauthScope { public static final OauthScope CREATE_LOG_STREAMS = new OauthScope(Value.CREATE_LOG_STREAMS, "create:log_streams"); - public static final OauthScope READ_FEDERATED_CONNECTIONS_TOKENS = - new OauthScope(Value.READ_FEDERATED_CONNECTIONS_TOKENS, "read:federated_connections_tokens"); - public static final OauthScope DELETE_ORGANIZATION_MEMBERS = new OauthScope(Value.DELETE_ORGANIZATION_MEMBERS, "delete:organization_members"); @@ -738,8 +732,6 @@ public T visit(Visitor visitor) { return visitor.visitDeleteOrganizationConnections(); case READ_ROLE_MEMBERS: return visitor.visitReadRoleMembers(); - case DELETE_FEDERATED_CONNECTIONS_TOKENS: - return visitor.visitDeleteFederatedConnectionsTokens(); case READ_SELF_SERVICE_PROFILES: return visitor.visitReadSelfServiceProfiles(); case CREATE_ORGANIZATION_DISCOVERY_DOMAINS: @@ -956,8 +948,6 @@ public T visit(Visitor visitor) { return visitor.visitReadClientKeys(); case CREATE_LOG_STREAMS: return visitor.visitCreateLogStreams(); - case READ_FEDERATED_CONNECTIONS_TOKENS: - return visitor.visitReadFederatedConnectionsTokens(); case DELETE_ORGANIZATION_MEMBERS: return visitor.visitDeleteOrganizationMembers(); case READ_ORGANIZATION_MEMBER_ROLES: @@ -1223,8 +1213,6 @@ public static OauthScope valueOf(String value) { return DELETE_ORGANIZATION_CONNECTIONS; case "read:role_members": return READ_ROLE_MEMBERS; - case "delete:federated_connections_tokens": - return DELETE_FEDERATED_CONNECTIONS_TOKENS; case "read:self_service_profiles": return READ_SELF_SERVICE_PROFILES; case "create:organization_discovery_domains": @@ -1441,8 +1429,6 @@ public static OauthScope valueOf(String value) { return READ_CLIENT_KEYS; case "create:log_streams": return CREATE_LOG_STREAMS; - case "read:federated_connections_tokens": - return READ_FEDERATED_CONNECTIONS_TOKENS; case "delete:organization_members": return DELETE_ORGANIZATION_MEMBERS; case "read:organization_member_roles": @@ -1801,10 +1787,6 @@ public enum Value { READ_EVENTS, - READ_FEDERATED_CONNECTIONS_TOKENS, - - DELETE_FEDERATED_CONNECTIONS_TOKENS, - CREATE_FLOWS, READ_FLOWS, @@ -2281,10 +2263,6 @@ public interface Visitor { T visitReadEvents(); - T visitReadFederatedConnectionsTokens(); - - T visitDeleteFederatedConnectionsTokens(); - T visitCreateFlows(); T visitReadFlows(); diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java index 14de55cac..36c761ea6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationAllConnectionPost.java @@ -259,7 +259,6 @@ public Builder from(OrganizationAllConnectionPost other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2a995e870..ca814a67f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java @@ -120,7 +120,6 @@ public Builder from(OrganizationBrandingColors other) { } /** - *

HEX Color for primary elements.

*

HEX Color for primary elements.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -132,7 +131,6 @@ public PageBackgroundStage primary(@NotNull String primary) { } /** - *

HEX Color for background.

*

HEX Color for background.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ea1130c36..4f9a58de9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java @@ -218,7 +218,6 @@ public Builder from(OrganizationDiscoveryDomain other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -230,7 +229,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -249,7 +247,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -261,7 +258,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2f2e6d300..3b74a2a4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java @@ -98,7 +98,6 @@ public Builder from(OrganizationInvitationInvitee other) { } /** - *

The invitee's email.

*

The invitee's email.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 443f5b4cf..2fae7932f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java @@ -98,7 +98,6 @@ public Builder from(OrganizationInvitationInviter other) { } /** - *

The inviter's name.

*

The inviter's name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java index a02296ced..0a35e16a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberEffectiveRole.java @@ -174,7 +174,6 @@ public Builder from(OrganizationMemberEffectiveRole other) { } /** - *

Role ID

*

Role ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -186,7 +185,6 @@ public NameStage id(@NotNull String id) { } /** - *

Role name

*

Role name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -198,7 +196,6 @@ public DescriptionStage name(@NotNull String name) { } /** - *

Role description

*

Role description

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java index b6ae4bb24..d17bed890 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentAction.java @@ -145,7 +145,6 @@ public Builder from(PatchRateLimitPolicyConfigurationRequestContentAction other) } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -157,7 +156,6 @@ public LimitStage action(@NotNull PatchRateLimitPolicyConfigurationRequestConten } /** - *

The maximum number of requests allowed per second.

*

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -169,7 +167,6 @@ public RedirectUriStage limit(int limit) { } /** - *

The HTTPS URI to redirect to when the rate limit is exceeded.

*

The HTTPS URI to redirect to when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java index 2bf8ae277..a5d12f229 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentOne.java @@ -123,7 +123,6 @@ public Builder from(PatchRateLimitPolicyConfigurationRequestContentOne other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -135,7 +134,6 @@ public LimitStage action(@NotNull PatchRateLimitPolicyConfigurationRequestConten } /** - *

The maximum number of requests allowed per second.

*

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java index b018d3ede..e956dfd74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchRateLimitPolicyConfigurationRequestContentZero.java @@ -101,7 +101,6 @@ public Builder from(PatchRateLimitPolicyConfigurationRequestContentZero other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f889d30ae..168951c7c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java @@ -121,7 +121,6 @@ public Builder from(PermissionRequestPayload other) { } /** - *

Resource server (API) identifier that this permission is for.

*

Resource server (API) identifier that this permission is for.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public PermissionNameStage resourceServerIdentifier(@NotNull String resourceServ } /** - *

Name of this permission.

*

Name of this permission.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 3a819661f..45a93b793 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java @@ -219,7 +219,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java index 042ede4e7..9f78fc149 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/PostConnectionsKeysResponseContentItem.java @@ -332,7 +332,6 @@ public Builder from(PostConnectionsKeysResponseContentItem other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +343,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +354,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -368,7 +365,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java index 01696b956..a494cc1cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java @@ -98,7 +98,6 @@ public Builder from(PreviewCimdMetadataRequestContent other) { } /** - *

URL to the Client ID Metadata Document

*

URL to the Client ID Metadata Document

* @return Reference to {@code this} so that method calls can be chained together. */ 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 160f21fe6..9a7da217f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java @@ -237,7 +237,6 @@ public PemStage credentialType(@NotNull PublicKeyCredentialTypeEnum credentialTy } /** - *

PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped.

*

PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java index 0e0eb85df..dbbb8ebe8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicy.java @@ -231,7 +231,6 @@ public Builder from(RateLimitPolicy other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -257,7 +256,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java index dfc98e81e..ebb9d4827 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationAction.java @@ -145,7 +145,6 @@ public Builder from(RateLimitPolicyConfigurationAction other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -157,7 +156,6 @@ public LimitStage action(@NotNull RateLimitPolicyConfigurationActionAction actio } /** - *

The maximum number of requests allowed per second.

*

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -169,7 +167,6 @@ public RedirectUriStage limit(int limit) { } /** - *

The HTTPS URI to redirect to when the rate limit is exceeded.

*

The HTTPS URI to redirect to when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java index de108c7ac..0212ab1d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationOne.java @@ -120,7 +120,6 @@ public Builder from(RateLimitPolicyConfigurationOne other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -132,7 +131,6 @@ public LimitStage action(@NotNull RateLimitPolicyConfigurationOneAction action) } /** - *

The maximum number of requests allowed per second.

*

The maximum number of requests allowed per second.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java index 73859b4d9..ada8ed88f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/RateLimitPolicyConfigurationZero.java @@ -99,7 +99,6 @@ public Builder from(RateLimitPolicyConfigurationZero other) { } /** - *

Determines the action to take when the rate limit is exceeded.

*

Determines the action to take when the rate limit is exceeded.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java index 27460c110..f4dddb688 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java @@ -98,7 +98,6 @@ public Builder from(RegisterCimdClientRequestContent other) { } /** - *

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

*

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java index 5c4580776..c42c04444 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java @@ -134,7 +134,6 @@ public Builder from(RegisterCimdClientResponseContent other) { } /** - *

The Auth0 client_id of the created or updated client

*

The Auth0 client_id of the created or updated client

* @return Reference to {@code this} so that method calls can be chained together. */ 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 96ca09e24..46c5846f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java @@ -219,7 +219,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java index 5613c7ee2..6d3ca947d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerAuthorizationPolicy.java @@ -98,7 +98,6 @@ public Builder from(ResourceServerAuthorizationPolicy other) { } /** - *

The ID of the authorization policy to apply.

*

The ID of the authorization policy to apply.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 b3f8e753c..946fc4d79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java @@ -141,7 +141,6 @@ public RequiredStage mechanism(@NotNull ResourceServerProofOfPossessionMechanism } /** - *

Whether the use of Proof-of-Possession is required for the resource server

*

Whether the use of Proof-of-Possession is required for the resource server

* @return Reference to {@code this} so that method calls can be chained together. */ 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 625eb5f7a..decf9e69a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java @@ -121,7 +121,6 @@ public Builder from(ResourceServerScope other) { } /** - *

Value of this scope.

*

Value of this scope.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 99f7ba6aa..f9bf5c528 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java @@ -169,7 +169,6 @@ public PemStage alg(@NotNull ResourceServerTokenEncryptionAlgorithmEnum alg) { } /** - *

PEM-formatted public key. Must be JSON escaped.

*

PEM-formatted public key. Must be JSON escaped.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 166b2049b..2d50f32f3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java @@ -119,7 +119,6 @@ public Builder from(RevokedSigningKeysResponseContent other) { } /** - *

Revoked key certificate

*

Revoked key certificate

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public KidStage cert(@NotNull String cert) { } /** - *

Revoked key id

*

Revoked key id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 816c1a3e6..2f5779720 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java @@ -284,7 +284,6 @@ public Builder from(RotateConnectionsKeysResponseContent other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7e4100239..bdc6cdee1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java @@ -119,7 +119,6 @@ public Builder from(RotateSigningKeysResponseContent other) { } /** - *

Next key certificate

*

Next key certificate

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public KidStage cert(@NotNull String cert) { } /** - *

Next key id

*

Next key id

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java index 1b6d6684a..939dfbc6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScimConfiguration.java @@ -283,7 +283,6 @@ public Builder from(ScimConfiguration other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -295,7 +294,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -307,7 +305,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -319,7 +316,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -331,7 +327,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -343,7 +338,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -355,7 +349,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ 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 dbf18618a..f1c9846eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java @@ -224,7 +224,6 @@ public Builder from(SelfServiceProfileSsoTicketConnectionConfig other) { } /** - *

The name of the connection that will be created as a part of the Self-Service Enterprise Configuration flow.

*

The name of the connection that will be created as a part of the Self-Service Enterprise Configuration flow.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 617b8d170..51864cee0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java @@ -149,7 +149,6 @@ public Builder from(SelfServiceProfileSsoTicketEnabledOrganization other) { } /** - *

Organization identifier.

*

Organization identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 a00467d23..b77349d79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java @@ -99,7 +99,6 @@ public Builder from(SelfServiceProfileSsoTicketGoogleWorkspaceConfig other) { } /** - *

Whether to enable Google Workspace Directory Sync for users during the self-service flow.

*

Whether to enable Google Workspace Directory Sync for users during the self-service flow.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c53f14184..257debf9a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java @@ -141,7 +141,6 @@ public Builder from(SelfServiceProfileUserAttribute other) { } /** - *

Identifier of this attribute.

*

Identifier of this attribute.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -153,7 +152,6 @@ public DescriptionStage name(@NotNull String name) { } /** - *

Description of this attribute.

*

Description of this attribute.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -165,7 +163,6 @@ public IsOptionalStage description(@NotNull String description) { } /** - *

Determines if this attribute is required

*

Determines if this attribute is required

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java index aafa490b5..4b656ddf8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java @@ -99,7 +99,6 @@ public Builder from(SetDefaultCustomDomainRequestContent other) { } /** - *

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

*

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 24ca6daa9..4e6034a7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorPhoneTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 e504e2b34..51259f389 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java @@ -97,7 +97,6 @@ public Builder from(SetGuardianFactorResponseContent other) { } /** - *

Whether this factor is enabled (true) or disabled (false).

*

Whether this factor is enabled (true) or disabled (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 efe4cbbea..3ec9d35ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java @@ -122,7 +122,6 @@ public Builder from(SetGuardianFactorSmsTemplatesResponseContent other) { } /** - *

Message sent to the user when they are invited to enroll with a phone number.

*

Message sent to the user when they are invited to enroll with a phone number.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -134,7 +133,6 @@ public VerificationMessageStage enrollmentMessage(@NotNull String enrollmentMess } /** - *

Message sent to the user when they are prompted to verify their account.

*

Message sent to the user when they are prompted to verify their account.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 11890ffa1..abee3e98c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java @@ -166,7 +166,6 @@ public ActiveStage description(@NotNull String description) { } /** - *

Indicates whether or not this access control list is actively being used

*

Indicates whether or not this access control list is actively being used

* @return Reference to {@code this} so that method calls can be chained together. */ 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 fe34bbeec..7dc2bf117 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java @@ -98,7 +98,6 @@ public Builder from(SetRulesConfigRequestContent other) { } /** - *

Value for a rules config variable.

*

Value for a rules config variable.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 c4194eca3..c215e5b40 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java @@ -119,7 +119,6 @@ public Builder from(SetRulesConfigResponseContent other) { } /** - *

Key for a rules config variable.

*

Key for a rules config variable.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -131,7 +130,6 @@ public ValueStage key(@NotNull String key) { } /** - *

Value for a rules config variable.

*

Value for a rules config variable.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 86f9b33c0..b9a8db92e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java +++ b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java @@ -349,7 +349,6 @@ public Builder from(SigningKeys other) { } /** - *

The key id of the signing key

*

The key id of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -361,7 +360,6 @@ public CertStage kid(@NotNull String kid) { } /** - *

The public certificate of the signing key

*

The public certificate of the signing key

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +371,6 @@ public FingerprintStage cert(@NotNull String cert) { } /** - *

The cert fingerprint

*

The cert fingerprint

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +382,6 @@ public ThumbprintStage fingerprint(@NotNull String fingerprint) { } /** - *

The cert thumbprint

*

The cert thumbprint

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java index b4c4a38d7..5c6a11e08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/SubscribeEventsRequestParameters.java @@ -3,6 +3,7 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -10,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -57,7 +59,8 @@ public Optional> getEventType() { /** * @return Opaque token representing position in the stream. If not provided, stream will start from the latest events. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -68,7 +71,8 @@ public OptionalNullable getFrom() { /** * @return RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from_timestamp") public OptionalNullable getFromTimestamp() { if (fromTimestamp == null) { return OptionalNullable.absent(); @@ -76,6 +80,24 @@ public OptionalNullable getFromTimestamp() { return fromTimestamp; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("event_type") + private Optional> _getEventType() { + return eventType; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from_timestamp") + private OptionalNullable _getFromTimestamp() { + return fromTimestamp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java b/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java index 2dd23798e..d46e13a4d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/SynchronizedGroupPayload.java @@ -98,7 +98,6 @@ public Builder from(SynchronizedGroupPayload other) { } /** - *

Google Workspace Directory group ID.

*

Google Workspace Directory group ID.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9b0d0c996..c7ab7dc7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java @@ -121,7 +121,6 @@ public Builder from(TestCustomDomainResponseContent other) { } /** - *

Result of the operation.

*

Result of the operation.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7cff000d0..f4f87be14 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private TokenExchangeProfilesListRequest( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 80d8ee4d3..40ef670c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java @@ -238,7 +238,6 @@ public DisplayNameStage colors(@NotNull BrandingThemeColors colors) { } /** - *

Display Name

*

Display Name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -264,7 +263,6 @@ public ThemeIdStage pageBackground(@NotNull BrandingThemePageBackground pageBack } /** - *

Theme Id

*

Theme Id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 4032c879d..730013814 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -83,8 +83,6 @@ public final class UpdateConnectionOptions { private final OptionalNullable gatewayAuthentication; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional passwordOptions; private final Optional assertionDecryptionSettings; @@ -137,7 +135,6 @@ private UpdateConnectionOptions( OptionalNullable>> upstreamParams, Optional setUserRootAttributes, OptionalNullable gatewayAuthentication, - OptionalNullable federatedConnectionsAccessTokens, Optional passwordOptions, Optional assertionDecryptionSettings, OptionalNullable> idTokenSignedResponseAlgs, @@ -178,7 +175,6 @@ private UpdateConnectionOptions( this.upstreamParams = upstreamParams; this.setUserRootAttributes = setUserRootAttributes; this.gatewayAuthentication = gatewayAuthentication; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.passwordOptions = passwordOptions; this.assertionDecryptionSettings = assertionDecryptionSettings; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -403,15 +399,6 @@ public OptionalNullable getGatewayAuthenticatio return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - public OptionalNullable getFederatedConnectionsAccessTokens() { - if (federatedConnectionsAccessTokens == null) { - return OptionalNullable.absent(); - } - return federatedConnectionsAccessTokens; - } - @JsonProperty("password_options") public Optional getPasswordOptions() { return passwordOptions; @@ -555,12 +542,6 @@ private OptionalNullable _getGatewayAuthenticat return gatewayAuthentication; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("federated_connections_access_tokens") - private OptionalNullable _getFederatedConnectionsAccessTokens() { - return federatedConnectionsAccessTokens; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("id_token_signed_response_algs") private OptionalNullable> _getIdTokenSignedResponseAlgs() { @@ -632,7 +613,6 @@ private boolean equalTo(UpdateConnectionOptions other) { && upstreamParams.equals(other.upstreamParams) && setUserRootAttributes.equals(other.setUserRootAttributes) && gatewayAuthentication.equals(other.gatewayAuthentication) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && passwordOptions.equals(other.passwordOptions) && assertionDecryptionSettings.equals(other.assertionDecryptionSettings) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -677,7 +657,6 @@ public int hashCode() { this.upstreamParams, this.setUserRootAttributes, this.gatewayAuthentication, - this.federatedConnectionsAccessTokens, this.passwordOptions, this.assertionDecryptionSettings, this.idTokenSignedResponseAlgs, @@ -762,9 +741,6 @@ public static final class Builder { private OptionalNullable gatewayAuthentication = OptionalNullable.absent(); - private OptionalNullable federatedConnectionsAccessTokens = - OptionalNullable.absent(); - private Optional passwordOptions = Optional.empty(); private Optional assertionDecryptionSettings = Optional.empty(); @@ -823,7 +799,6 @@ public Builder from(UpdateConnectionOptions other) { upstreamParams(other.getUpstreamParams()); setUserRootAttributes(other.getSetUserRootAttributes()); gatewayAuthentication(other.getGatewayAuthentication()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); passwordOptions(other.getPasswordOptions()); assertionDecryptionSettings(other.getAssertionDecryptionSettings()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1437,43 +1412,6 @@ public Builder gatewayAuthentication( return this; } - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public Builder federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; - return this; - } - - public Builder federatedConnectionsAccessTokens( - ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); - return this; - } - - public Builder federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } - return this; - } - - public Builder federatedConnectionsAccessTokens( - com.auth0.client.mgmt.core.Nullable - federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isNull()) { - this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); - } else if (federatedConnectionsAccessTokens.isEmpty()) { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } - return this; - } - @JsonSetter(value = "password_options", nulls = Nulls.SKIP) public Builder passwordOptions(Optional passwordOptions) { this.passwordOptions = passwordOptions; @@ -1731,7 +1669,6 @@ public UpdateConnectionOptions build() { upstreamParams, setUserRootAttributes, gatewayAuthentication, - federatedConnectionsAccessTokens, passwordOptions, assertionDecryptionSettings, idTokenSignedResponseAlgs, 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 62d8416e6..9c5e0a486 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java @@ -361,7 +361,6 @@ public Builder from(UpdateCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -373,7 +372,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -385,7 +383,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java index 97fdeb39b..a1327f6c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java @@ -99,7 +99,6 @@ public Builder from(UpdateDefaultCanonicalDomainResponseContent other) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java index 4779ecd94..9a166c69b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java @@ -380,7 +380,6 @@ public Builder from(UpdateDefaultCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -392,7 +391,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -404,7 +402,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 75dfb1d00..37f90ae51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java @@ -350,7 +350,6 @@ public Builder from(UpdateDirectoryProvisioningResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -362,7 +361,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -374,7 +372,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -386,7 +383,6 @@ public SynchronizeAutomaticallyStage strategy(@NotNull String strategy) { } /** - *

Whether periodic automatic synchronization is enabled

*

Whether periodic automatic synchronization is enabled

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -398,7 +394,6 @@ public CreatedAtStage synchronizeAutomatically(boolean synchronizeAutomatically) } /** - *

The timestamp at which the directory provisioning configuration was created

*

The timestamp at which the directory provisioning configuration was created

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -410,7 +405,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The timestamp at which the directory provisioning configuration was last updated

*

The timestamp at which the directory provisioning configuration was last updated

* @return Reference to {@code this} so that method calls can be chained together. */ 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 85ea275ec..bd18331d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java @@ -121,7 +121,6 @@ public Builder from(UpdateEnabledClientConnectionsRequestContentItem other) { } /** - *

The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients.

*

The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -133,7 +132,6 @@ public StatusStage clientId(@NotNull String clientId) { } /** - *

Whether the connection is enabled or not for this client_id

*

Whether the connection is enabled or not for this client_id

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ebda4b622..c4a3bb5e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java @@ -323,7 +323,6 @@ public Builder from(UpdateFlowsVaultConnectionResponseContent other) { } /** - *

Flows Vault Connection identifier.

*

Flows Vault Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -335,7 +334,6 @@ public AppIdStage id(@NotNull String id) { } /** - *

Flows Vault Connection app identifier.

*

Flows Vault Connection app identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -347,7 +345,6 @@ public NameStage appId(@NotNull String appId) { } /** - *

Flows Vault Connection name.

*

Flows Vault Connection name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -359,7 +356,6 @@ public ReadyStage name(@NotNull String name) { } /** - *

Whether the Flows Vault Connection is configured.

*

Whether the Flows Vault Connection is configured.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -371,7 +367,6 @@ public CreatedAtStage ready(boolean ready) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was created.

*

The ISO 8601 formatted date when this Flows Vault Connection was created.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -383,7 +378,6 @@ public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 formatted date when this Flows Vault Connection was updated.

*

The ISO 8601 formatted date when this Flows Vault Connection was updated.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java index 8eebc23f9..4c5e4431e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionSetup.java @@ -223,11 +223,6 @@ public UpdateFlowsVaultConnectionSetup deserialize(JsonParser p, Deserialization } catch (RuntimeException e) { } } - try { - return of( - ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupBigqueryOauthJwt.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("type") && ((Map) value).containsKey("secret_key")) { @@ -319,10 +314,6 @@ public UpdateFlowsVaultConnectionSetup deserialize(JsonParser p, Deserialization } catch (RuntimeException e) { } } - try { - return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupOauthCode.class)); - } catch (RuntimeException e) { - } if (value instanceof Map && ((Map) value).containsKey("type") && ((Map) value).containsKey("account_id") @@ -333,6 +324,15 @@ public UpdateFlowsVaultConnectionSetup deserialize(JsonParser p, Deserialization } catch (RuntimeException e) { } } + try { + return of( + ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupBigqueryOauthJwt.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FlowsVaultConnectioSetupOauthCode.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java index c73c1e9fc..20b27472c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationAllConnectionResponseContent.java @@ -260,7 +260,6 @@ public Builder from(UpdateOrganizationAllConnectionResponseContent other) { } /** - *

Connection identifier.

*

Connection identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 f687785f1..ad61730ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java @@ -219,7 +219,6 @@ public Builder from(UpdateOrganizationDiscoveryDomainResponseContent other) { } /** - *

Organization discovery domain identifier.

*

Organization discovery domain identifier.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -231,7 +230,6 @@ public DomainStage id(@NotNull String id) { } /** - *

The domain name to associate with the organization e.g. acme.com.

*

The domain name to associate with the organization e.g. acme.com.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -250,7 +248,6 @@ public VerificationTxtStage status(@NotNull OrganizationDiscoveryDomainStatus st } /** - *

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

*

A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -262,7 +259,6 @@ public VerificationHostStage verificationTxt(@NotNull String verificationTxt) { } /** - *

The full domain where the TXT record should be added.

*

The full domain where the TXT record should be added.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 314750eda..75cbd4a8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java @@ -220,7 +220,6 @@ public DisabledStage type(@NotNull PhoneTemplateNotificationTypeEnum type) { } /** - *

Whether the template is enabled (false) or disabled (true).

*

Whether the template is enabled (false) or disabled (true).

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java index 3b5347553..8dab56649 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRateLimitPolicyResponseContent.java @@ -232,7 +232,6 @@ public Builder from(UpdateRateLimitPolicyResponseContent other) { } /** - *

Unique identifier for the Rate Limit Policy.

*

Unique identifier for the Rate Limit Policy.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -258,7 +257,6 @@ public ConsumerSelectorStage consumer(@NotNull RateLimitPolicyConsumerEnum consu } /** - *

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

*

Identifier or category within the consumer to which the policy applies. Supported values: client_id:<client_id> to target a specific client by ID, client_id:<cimd_uri> to target a CIMD client by URI, cimd_clients to target all CIMD clients, third_party_clients to target all third-party clients, or default to apply the policy to any consumer identifier not otherwise explicitly targeted.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 475b3669e..8f0704d13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -99,7 +99,6 @@ public Builder from(UpdateRiskAssessmentsSettingsNewDeviceResponseContent other) } /** - *

Length of time to remember devices for, in days.

*

Length of time to remember devices for, in days.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 1f20b8621..281f86dad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java @@ -98,7 +98,6 @@ public Builder from(UpdateRiskAssessmentsSettingsResponseContent other) { } /** - *

Whether or not risk assessment is enabled.

*

Whether or not risk assessment is enabled.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 7852ae67e..8e765d5ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java @@ -284,7 +284,6 @@ public Builder from(UpdateScimConfigurationResponseContent other) { } /** - *

The connection's identifier

*

The connection's identifier

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -296,7 +295,6 @@ public ConnectionNameStage connectionId(@NotNull String connectionId) { } /** - *

The connection's name

*

The connection's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -308,7 +306,6 @@ public StrategyStage connectionName(@NotNull String connectionName) { } /** - *

The connection's strategy

*

The connection's strategy

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -320,7 +317,6 @@ public TenantNameStage strategy(@NotNull String strategy) { } /** - *

The tenant's name

*

The tenant's name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -332,7 +328,6 @@ public UserIdAttributeStage tenantName(@NotNull String tenantName) { } /** - *

User ID attribute for generating unique user ids

*

User ID attribute for generating unique user ids

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -344,7 +339,6 @@ public CreatedAtStage userIdAttribute(@NotNull String userIdAttribute) { } /** - *

The ISO 8601 date and time the SCIM configuration was created at

*

The ISO 8601 date and time the SCIM configuration was created at

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -356,7 +350,6 @@ public UpdatedOnStage createdAt(@NotNull OffsetDateTime createdAt) { } /** - *

The ISO 8601 date and time the SCIM configuration was last updated on

*

The ISO 8601 date and time the SCIM configuration was last updated on

* @return Reference to {@code this} so that method calls can be chained together. */ 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 ec7bff381..4750b2408 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java @@ -98,7 +98,6 @@ public Builder from(UpdateSupplementalSignalsRequestContent other) { } /** - *

Indicates if incoming Akamai Headers should be processed

*

Indicates if incoming Akamai Headers should be processed

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java index f795f0cc2..ea3fa958a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContent.java @@ -85,10 +85,6 @@ static final class Deserializer extends StdDeserializer && ((Map) value).containsKey("template")) { try { return of(ObjectMappers.JSON_MAPPER.convertValue( @@ -96,6 +92,10 @@ public UpdateUniversalLoginTemplateRequestContent deserialize(JsonParser p, Dese } catch (RuntimeException e) { } } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } 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 27aae1651..bd29db926 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java @@ -122,7 +122,6 @@ public Builder from(UserAttributeProfileOidcMapping other) { } /** - *

OIDC mapping field

*

OIDC mapping field

* @return Reference to {@code this} so that method calls can be chained together. */ 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 37fb0d77e..d7acd3941 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java @@ -262,7 +262,6 @@ public Builder from(UserAttributeProfileUserAttributeAdditionalProperties other) } /** - *

Description of this attribute

*

Description of this attribute

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -274,7 +273,6 @@ public LabelStage description(@NotNull String description) { } /** - *

Display label for this attribute

*

Display label for this attribute

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -286,7 +284,6 @@ public ProfileRequiredStage label(@NotNull String label) { } /** - *

Whether this attribute is required in the profile

*

Whether this attribute is required in the profile

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -298,7 +295,6 @@ public Auth0MappingStage profileRequired(boolean profileRequired) { } /** - *

Auth0 mapping for this attribute

*

Auth0 mapping for this attribute

* @return Reference to {@code this} so that method calls can be chained together. */ 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 9b55fe4e7..863e0571c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java @@ -592,7 +592,6 @@ public Builder from(UserAuthenticationMethod other) { } /** - *

The ID of the authentication method (auto generated)

*

The ID of the authentication method (auto generated)

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -611,7 +610,6 @@ public CreatedAtStage type(@NotNull AuthenticationMethodTypeEnum type) { } /** - *

Authenticator creation date

*

Authenticator creation date

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java b/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java index d7bceb84d..b948447ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserEffectiveRole.java @@ -174,7 +174,6 @@ public Builder from(UserEffectiveRole other) { } /** - *

Role ID

*

Role ID

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -186,7 +185,6 @@ public NameStage id(@NotNull String id) { } /** - *

Role name

*

Role name

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -198,7 +196,6 @@ public DescriptionStage name(@NotNull String name) { } /** - *

Role description

*

Role description

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2669f8a19..3136a82f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java @@ -265,7 +265,6 @@ public Builder from(UserIdentity other) { } /** - *

Connection name of this identity.

*

Connection name of this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -277,7 +276,6 @@ public UserIdStage connection(@NotNull String connection) { } /** - *

user_id of this identity.

*

user_id of this identity.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -289,7 +287,6 @@ public ProviderStage userId(@NotNull UserId userId) { } /** - *

Type of identity provider.

*

Type of identity provider.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 5c0244377..2a7194875 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java @@ -355,7 +355,6 @@ public Builder from(VerifyCustomDomainResponseContent other) { } /** - *

ID of the custom domain.

*

ID of the custom domain.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -367,7 +366,6 @@ public DomainStage customDomainId(@NotNull String customDomainId) { } /** - *

Domain name.

*

Domain name.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -379,7 +377,6 @@ public PrimaryStage domain(@NotNull String domain) { } /** - *

Whether this is a primary domain (true) or not (false).

*

Whether this is a primary domain (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. */ 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 fda1c69e7..cdd6e5c62 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java @@ -241,7 +241,6 @@ public Builder from(VerifyEmailTicketRequestContent other) { } /** - *

user_id of for whom the ticket should be created.

*

user_id of for whom the ticket should be created.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 2de3747c4..b396bba11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java @@ -98,7 +98,6 @@ public Builder from(VerifyEmailTicketResponseContent other) { } /** - *

URL representing the ticket.

*

URL representing the ticket.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 886307903..97294df41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java @@ -147,7 +147,6 @@ public PemStage credentialType(@NotNull X509CertificateCredentialTypeEnum creden } /** - *

PEM-formatted X509 certificate. Must be JSON escaped.

*

PEM-formatted X509 certificate. Must be JSON escaped.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java deleted file mode 100644 index a94c43cb7..000000000 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncFederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import java.util.List; -import java.util.concurrent.CompletableFuture; - -public class AsyncFederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - private final AsyncRawFederatedConnectionsTokensetsClient rawClient; - - public AsyncFederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - this.rawClient = new AsyncRawFederatedConnectionsTokensetsClient(clientOptions); - } - - /** - * Get responses with HTTP metadata like headers - */ - public AsyncRawFederatedConnectionsTokensetsClient withRawResponse() { - return this.rawClient; - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture> list(String id) { - return this.rawClient.list(id).thenApply(response -> response.body()); - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture> list(String id, RequestOptions requestOptions) { - return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); - } - - public CompletableFuture delete(String id, String tokensetId) { - return this.rawClient.delete(id, tokensetId).thenApply(response -> response.body()); - } - - public CompletableFuture delete(String id, String tokensetId, RequestOptions requestOptions) { - return this.rawClient.delete(id, tokensetId, requestOptions).thenApply(response -> response.body()); - } -} 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 1b429fb22..06d5cc420 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -106,6 +107,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -176,6 +186,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -230,6 +243,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -284,6 +306,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -342,6 +367,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -392,6 +426,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -436,6 +473,15 @@ public CompletableFuture> deleteAll(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -476,6 +522,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -517,6 +566,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -566,6 +624,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -612,6 +673,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -657,6 +727,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -738,6 +811,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -787,6 +869,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java index 8ff7d25bf..99ed44ac0 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticatorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -64,6 +65,15 @@ public CompletableFuture> deleteAll(String id, R if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -104,6 +114,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 43ab0f827..4bd582f8f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -95,6 +96,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -161,6 +171,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java index 3ef250849..a591bb5f6 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectivePermissionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public AsyncRawEffectivePermissionsClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -149,6 +159,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java index ed55240d9..a687f1430 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEffectiveRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -95,6 +96,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -161,6 +171,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 bd99fd7de..e22a7baaf 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture>> get( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -117,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java deleted file mode 100644 index 6f4456f41..000000000 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,208 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.ManagementApiException; -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; -import com.auth0.client.mgmt.core.ManagementException; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.errors.BadRequestError; -import com.auth0.client.mgmt.errors.ForbiddenError; -import com.auth0.client.mgmt.errors.NotFoundError; -import com.auth0.client.mgmt.errors.TooManyRequestsError; -import com.auth0.client.mgmt.errors.UnauthorizedError; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.CompletableFuture; -import okhttp3.Call; -import okhttp3.Callback; -import okhttp3.Headers; -import okhttp3.HttpUrl; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; -import okhttp3.ResponseBody; -import org.jetbrains.annotations.NotNull; - -public class AsyncRawFederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - public AsyncRawFederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture>> list(String id) { - return list(id, null); - } - - /** - * List active federated connections tokensets for a provided user - */ - public CompletableFuture>> list( - String id, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets"); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("GET", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - CompletableFuture>> future = - new CompletableFuture<>(); - client.newCall(okhttpRequest).enqueue(new Callback() { - @Override - public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { - try (ResponseBody responseBody = response.body()) { - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - if (response.isSuccessful()) { - future.complete(new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, new TypeReference>() {}), - response)); - return; - } - try { - switch (response.code()) { - case 401: - future.completeExceptionally(new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 403: - future.completeExceptionally(new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 404: - future.completeExceptionally(new NotFoundError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 429: - future.completeExceptionally(new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - future.completeExceptionally(new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response)); - return; - } catch (IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - } - - @Override - public void onFailure(@NotNull Call call, @NotNull IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - }); - return future; - } - - public CompletableFuture> delete(String id, String tokensetId) { - return delete(id, tokensetId, null); - } - - public CompletableFuture> delete( - String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("DELETE", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - CompletableFuture> future = new CompletableFuture<>(); - client.newCall(okhttpRequest).enqueue(new Callback() { - @Override - public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { - try (ResponseBody responseBody = response.body()) { - if (response.isSuccessful()) { - future.complete(new ManagementApiHttpResponse<>(null, response)); - return; - } - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - try { - switch (response.code()) { - case 400: - future.completeExceptionally(new BadRequestError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 401: - future.completeExceptionally(new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 403: - future.completeExceptionally(new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - case 429: - future.completeExceptionally(new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), - response)); - return; - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - future.completeExceptionally(new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response)); - return; - } catch (IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - } - - @Override - public void onFailure(@NotNull Call call, @NotNull IOException e) { - future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); - } - }); - return future; - } -} 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 49ee7a1a2..eeb67bd97 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 6ccf3ce8f..e5b76edff 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -198,6 +199,15 @@ public CompletableFuture>> link( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -246,6 +256,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -296,6 +309,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -341,6 +363,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 6bf435ec1..bd681f3a8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -110,6 +111,15 @@ public CompletableFuture>> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -170,6 +180,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 5b3f0340b..a931921e6 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -69,6 +70,15 @@ public CompletableFuture> invalidateRememberBrow if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -104,6 +114,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -151,6 +164,15 @@ public CompletableFuture> deleteProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -196,6 +218,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 1a914d655..73524c2c6 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -94,6 +95,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 95e0a5bda..d91515cf3 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -99,6 +100,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -168,6 +178,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -222,6 +235,15 @@ public CompletableFuture> create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -321,6 +346,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -366,6 +400,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 4e3afc4a0..562e80125 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -202,6 +215,15 @@ public CompletableFuture> delete(String userId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -247,6 +269,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 93f01b84c..5bcc6b8ca 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -77,6 +78,15 @@ public CompletableFuture> clear( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -117,6 +127,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 ad6652d14..41f4e6426 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public CompletableFuture>> li if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -169,6 +179,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -224,6 +237,15 @@ public CompletableFuture> assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -269,6 +291,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -324,6 +349,15 @@ public CompletableFuture> delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -364,6 +398,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 b2773d9a0..1803065b8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -97,6 +98,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -202,6 +215,15 @@ public CompletableFuture> delete(String userId, if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -247,6 +269,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java deleted file mode 100644 index 6970674f1..000000000 --- a/src/main/java/com/auth0/client/mgmt/users/FederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import java.util.List; - -public class FederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - private final RawFederatedConnectionsTokensetsClient rawClient; - - public FederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - this.rawClient = new RawFederatedConnectionsTokensetsClient(clientOptions); - } - - /** - * Get responses with HTTP metadata like headers - */ - public RawFederatedConnectionsTokensetsClient withRawResponse() { - return this.rawClient; - } - - /** - * List active federated connections tokensets for a provided user - */ - public List list(String id) { - return this.rawClient.list(id).body(); - } - - /** - * List active federated connections tokensets for a provided user - */ - public List list(String id, RequestOptions requestOptions) { - return this.rawClient.list(id, requestOptions).body(); - } - - public void delete(String id, String tokensetId) { - this.rawClient.delete(id, tokensetId).body(); - } - - public void delete(String id, String tokensetId, RequestOptions requestOptions) { - this.rawClient.delete(id, tokensetId, requestOptions).body(); - } -} 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 e18e745b2..548bd6791 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -101,6 +102,15 @@ public ManagementApiHttpResponse> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -147,6 +157,8 @@ public ManagementApiHttpResponse> l Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -193,6 +205,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -229,6 +250,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -279,6 +302,15 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -376,6 +419,8 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -409,6 +454,15 @@ public ManagementApiHttpResponse get if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -442,6 +496,8 @@ public ManagementApiHttpResponse get Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -480,6 +536,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -510,6 +575,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -583,6 +650,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -616,6 +692,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 84bbdde39..bff9121d2 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -60,6 +61,15 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -87,6 +97,8 @@ public ManagementApiHttpResponse deleteAll(String id, RequestOptions reque Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 26e6724b8..85df9faf8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -90,6 +91,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -134,6 +144,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java index f61745763..9f22430b5 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEffectivePermissionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -77,6 +78,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -133,6 +143,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 0617f71de..a1a5fddc7 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse> get(String id, RequestOp if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -97,6 +107,8 @@ public ManagementApiHttpResponse> get(String id, RequestOp Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java deleted file mode 100644 index b74867d4d..000000000 --- a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java +++ /dev/null @@ -1,159 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.users; - -import com.auth0.client.mgmt.core.ClientOptions; -import com.auth0.client.mgmt.core.ManagementApiException; -import com.auth0.client.mgmt.core.ManagementApiHttpResponse; -import com.auth0.client.mgmt.core.ManagementException; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.RequestOptions; -import com.auth0.client.mgmt.errors.BadRequestError; -import com.auth0.client.mgmt.errors.ForbiddenError; -import com.auth0.client.mgmt.errors.NotFoundError; -import com.auth0.client.mgmt.errors.TooManyRequestsError; -import com.auth0.client.mgmt.errors.UnauthorizedError; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.IOException; -import java.util.List; -import okhttp3.Headers; -import okhttp3.HttpUrl; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; -import okhttp3.ResponseBody; - -public class RawFederatedConnectionsTokensetsClient { - protected final ClientOptions clientOptions; - - public RawFederatedConnectionsTokensetsClient(ClientOptions clientOptions) { - this.clientOptions = clientOptions; - } - - /** - * List active federated connections tokensets for a provided user - */ - public ManagementApiHttpResponse> list(String id) { - return list(id, null); - } - - /** - * List active federated connections tokensets for a provided user - */ - public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets"); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("GET", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - try (Response response = client.newCall(okhttpRequest).execute()) { - ResponseBody responseBody = response.body(); - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - if (response.isSuccessful()) { - return new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, new TypeReference>() {}), - response); - } - try { - switch (response.code()) { - case 401: - throw new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 403: - throw new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 404: - throw new NotFoundError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 429: - throw new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - throw new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response); - } catch (IOException e) { - throw new ManagementException("Network error executing HTTP request", e); - } - } - - public ManagementApiHttpResponse delete(String id, String tokensetId) { - return delete(id, tokensetId, null); - } - - public ManagementApiHttpResponse delete(String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) - .newBuilder() - .addPathSegments("users") - .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId); - if (requestOptions != null) { - requestOptions.getQueryParameters().forEach((_key, _value) -> { - httpUrl.addQueryParameter(_key, _value); - }); - } - Request okhttpRequest = new Request.Builder() - .url(httpUrl.build()) - .method("DELETE", null) - .headers(Headers.of(clientOptions.headers(requestOptions))) - .addHeader("Accept", "application/json") - .build(); - OkHttpClient client = clientOptions.httpClient(); - if (requestOptions != null && requestOptions.getTimeout().isPresent()) { - client = clientOptions.httpClientWithTimeout(requestOptions); - } - try (Response response = client.newCall(okhttpRequest).execute()) { - ResponseBody responseBody = response.body(); - if (response.isSuccessful()) { - return new ManagementApiHttpResponse<>(null, response); - } - String responseBodyString = responseBody != null ? responseBody.string() : "{}"; - try { - switch (response.code()) { - case 400: - throw new BadRequestError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 401: - throw new UnauthorizedError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 403: - throw new ForbiddenError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - case 429: - throw new TooManyRequestsError( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); - } - } catch (JsonProcessingException ignored) { - // unable to map error response, throwing generic error - } - Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); - throw new ManagementApiException( - "Error with status code " + response.code(), response.code(), errorBody, response); - } catch (IOException e) { - throw new ManagementException("Network error executing HTTP request", e); - } - } -} 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 41718b641..e87f4c816 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -98,6 +99,15 @@ public ManagementApiHttpResponse> g if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -141,6 +151,8 @@ public ManagementApiHttpResponse> g Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 31bb0f9b6..7507804db 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -192,6 +193,15 @@ public ManagementApiHttpResponse> link( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -225,6 +235,8 @@ public ManagementApiHttpResponse> link( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -267,6 +279,15 @@ public ManagementApiHttpResponse> de if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -298,6 +319,8 @@ public ManagementApiHttpResponse> de Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 fde9cf5d9..04a962637 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -103,6 +104,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -143,6 +153,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 f71433237..69efe0bb6 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -64,6 +65,15 @@ public ManagementApiHttpResponse invalidateRememberBrowser(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -88,6 +98,8 @@ public ManagementApiHttpResponse invalidateRememberBrowser(String id, Requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -126,6 +138,15 @@ public ManagementApiHttpResponse deleteProvider( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -156,6 +177,8 @@ public ManagementApiHttpResponse deleteProvider( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 e85f553ae..4bc76a459 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.NotFoundError; @@ -88,6 +89,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -129,6 +139,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 f6683d0ba..bdf323e66 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -94,6 +95,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -138,6 +148,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -183,6 +195,15 @@ public ManagementApiHttpResponse create( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -213,6 +234,8 @@ public ManagementApiHttpResponse create( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -258,6 +281,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -288,6 +320,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 468cb010b..c09a6ed0f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -91,6 +92,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -132,6 +142,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -168,6 +180,15 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -198,6 +219,8 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 35b0673d4..590535433 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.MediaTypes; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; import com.auth0.client.mgmt.errors.TooManyRequestsError; @@ -73,6 +74,15 @@ public ManagementApiHttpResponse clear( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -100,6 +110,8 @@ public ManagementApiHttpResponse clear( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 24333f89a..3b109e6f4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -139,6 +149,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -186,6 +198,15 @@ public ManagementApiHttpResponse assign( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -216,6 +237,8 @@ public ManagementApiHttpResponse assign( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -263,6 +286,15 @@ public ManagementApiHttpResponse delete( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -290,6 +322,8 @@ public ManagementApiHttpResponse delete( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } 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 a21ed36a3..1d0bcf579 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -91,6 +92,15 @@ public ManagementApiHttpResponse> lis if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -132,6 +142,8 @@ public ManagementApiHttpResponse> lis Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -168,6 +180,15 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -198,6 +219,8 @@ public ManagementApiHttpResponse delete(String userId, RequestOptions requ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java index e2c61e498..d21f83bd8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/AsyncRawRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -89,6 +90,15 @@ public AsyncRawRolesClient(ClientOptions clientOptions) { if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture< ManagementApiHttpResponse>> future = new CompletableFuture<>(); @@ -158,6 +168,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java index 97756a6a8..f96c83228 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectivepermissions/sources/RawRolesClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -79,6 +80,15 @@ public ManagementApiHttpResponse getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -60,7 +62,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -71,7 +74,7 @@ public OptionalNullable getTake() { /** * @return The identifier of the resource server for which to calculate user permissions. */ - @JsonIgnore + @JsonProperty("resource_server_identifier") public String getResourceServerIdentifier() { return resourceServerIdentifier; } @@ -79,11 +82,23 @@ public String getResourceServerIdentifier() { /** * @return Name of this permission */ - @JsonIgnore + @JsonProperty("permission_name") public String getPermissionName() { return permissionName; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -188,7 +203,6 @@ public Builder from(ListUserEffectivePermissionRoleSourceRequestParameters other } /** - *

The identifier of the resource server for which to calculate user permissions.

*

The identifier of the resource server for which to calculate user permissions.

* @return Reference to {@code this} so that method calls can be chained together. */ @@ -201,7 +215,6 @@ public PermissionNameStage resourceServerIdentifier(@NotNull String resourceServ } /** - *

Name of this permission

*

Name of this permission

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java index 3356b51ef..2b27052c7 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/AsyncRawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -82,6 +83,15 @@ public CompletableFuture>> l if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -146,6 +156,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java index d515a5e2f..44704908b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/RawGroupsClient.java @@ -10,6 +10,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -77,6 +78,15 @@ public ManagementApiHttpResponse> list( if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -120,6 +130,8 @@ public ManagementApiHttpResponse> list( Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } diff --git a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java index fdae70c61..f507b2e1c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/effectiveroles/sources/types/ListUserRoleSourceGroupsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.effectiveroles.sources.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,7 @@ private ListUserRoleSourceGroupsRequestParameters( /** * @return ID of the role to get source groups for. */ - @JsonIgnore + @JsonProperty("role_id") public String getRoleId() { return roleId; } @@ -53,7 +54,8 @@ public String getRoleId() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -64,7 +66,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -72,6 +75,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -163,7 +178,6 @@ public Builder from(ListUserRoleSourceGroupsRequestParameters other) { } /** - *

ID of the role to get source groups for.

*

ID of the role to get source groups for.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 54c8a842c..c6030cd91 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 @@ -126,7 +126,6 @@ public Builder from(ClearAssessorsRequestContent other) { } /** - *

The name of the connection containing the user whose assessors should be cleared.

*

The name of the connection containing the user whose assessors should be cleared.

* @return Reference to {@code this} so that method calls can be chained together. */ 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 bbfe51874..d37448324 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private GetUserConnectedAccountsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results to return. Defaults to 10 with a maximum of 20 */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 6ee63b76a..5fd938151 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private GetUserGroupsRequestParameters( /** * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") public OptionalNullable getFields() { if (fields == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getFields() { /** * @return Whether specified fields are to be included (true) or excluded (false). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") public OptionalNullable getIncludeFields() { if (includeFields == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getIncludeFields() { /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 0c2067424..0164af023 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListRefreshTokensRequestParameters( /** * @return An optional cursor from which to start the selection (exclusive). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 adfa218aa..8ea18bf5f 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserAuthenticationMethodsRequestParameters( /** * @return Page index of the results to return. First page is 0. Default is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Default is 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java index 827c55565..622bdc872 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectivePermissionsRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -45,7 +46,8 @@ private ListUserEffectivePermissionsRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -56,7 +58,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -67,11 +70,23 @@ public OptionalNullable getTake() { /** * @return The identifier of the resource server for which to calculate user permissions. */ - @JsonIgnore + @JsonProperty("resource_server_identifier") public String getResourceServerIdentifier() { return resourceServerIdentifier; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -165,7 +180,6 @@ public Builder from(ListUserEffectivePermissionsRequestParameters other) { } /** - *

The identifier of the resource server for which to calculate user permissions.

*

The identifier of the resource server for which to calculate user permissions.

* @return Reference to {@code this} so that method calls can be chained together. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java index 69597670f..66016480f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserEffectiveRolesRequestParameters.java @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListUserEffectiveRolesRequestParameters( /** * @return Optional Id from which to start selection. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 cb2089069..faed15572 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -48,7 +49,8 @@ private ListUserLogsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -59,7 +61,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Paging is disabled if parameter not sent. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -70,7 +73,8 @@ public OptionalNullable getPerPage() { /** * @return Field to sort by. Use fieldname:1 for ascending order and fieldname:-1 for descending. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") public OptionalNullable getSort() { if (sort == null) { return OptionalNullable.absent(); @@ -81,7 +85,8 @@ public OptionalNullable getSort() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -89,6 +94,30 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("sort") + private OptionalNullable _getSort() { + return sort; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 28f64e786..38b0dee59 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserOrganizationsRequestParameters( /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPage() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPerPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 0aa312f92..e9f9bdc13 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserPermissionsRequestParameters( /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 72499547f..11374e9db 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -44,7 +45,8 @@ private ListUserRolesRequestParameters( /** * @return Number of results per page. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") public OptionalNullable getPerPage() { if (perPage == null) { return OptionalNullable.absent(); @@ -55,7 +57,8 @@ public OptionalNullable getPerPage() { /** * @return Page index of the results to return. First page is 0. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") public OptionalNullable getPage() { if (page == null) { return OptionalNullable.absent(); @@ -66,7 +69,8 @@ public OptionalNullable getPage() { /** * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") public OptionalNullable getIncludeTotals() { if (includeTotals == null) { return OptionalNullable.absent(); @@ -74,6 +78,24 @@ public OptionalNullable getIncludeTotals() { return includeTotals; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("per_page") + private OptionalNullable _getPerPage() { + return perPage; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("page") + private OptionalNullable _getPage() { + return page; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_totals") + private OptionalNullable _getIncludeTotals() { + return includeTotals; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 75bf5cd8e..79dcdfd84 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 @@ -3,13 +3,14 @@ */ package com.auth0.client.mgmt.users.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -38,7 +39,8 @@ private ListUserSessionsRequestParameters( /** * @return An optional cursor from which to start the selection (exclusive). */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") public OptionalNullable getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; 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 4fa0a46ba..5d31c14ec 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -102,6 +103,15 @@ public CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -166,6 +176,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -218,6 +231,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -267,6 +289,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -311,6 +336,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -360,6 +394,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -403,6 +440,15 @@ public CompletableFuture> delete(String id, Requ if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -443,6 +489,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } @@ -514,6 +563,15 @@ public CompletableFuture> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @@ -563,6 +621,9 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO future.completeExceptionally(new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response)); return; + } catch (JsonProcessingException e) { + future.completeExceptionally( + new ManagementException("Failed to deserialize response: " + e.getMessage(), e)); } catch (IOException e) { future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); } 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 ef1139d14..2e6381c00 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 @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.RetryInterceptor; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; @@ -96,6 +97,15 @@ public ManagementApiHttpResponse if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; @@ -285,6 +317,8 @@ public ManagementApiHttpResponse Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -320,6 +354,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO if (requestOptions != null && requestOptions.getTimeout().isPresent()) { client = clientOptions.httpClientWithTimeout(requestOptions); } + if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) { + okhttpRequest = okhttpRequest + .newBuilder() + .tag( + RetryInterceptor.MaxRetriesOverride.class, + new RetryInterceptor.MaxRetriesOverride( + requestOptions.getMaxRetries().get())) + .build(); + } try (Response response = client.newCall(okhttpRequest).execute()) { ResponseBody responseBody = response.body(); if (response.isSuccessful()) { @@ -347,6 +390,8 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); throw new ManagementApiException( "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to deserialize response: " + e.getMessage(), e); } catch (IOException e) { throw new ManagementException("Network error executing HTTP request", e); } @@ -409,6 +454,15 @@ public ManagementApiHttpResponse getFrom() { if (from == null) { return OptionalNullable.absent(); @@ -49,7 +51,8 @@ public OptionalNullable getFrom() { /** * @return Number of results per page. Defaults to 50. */ - @JsonIgnore + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") public OptionalNullable getTake() { if (take == null) { return OptionalNullable.absent(); @@ -57,6 +60,18 @@ public OptionalNullable getTake() { return take; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + private OptionalNullable _getTake() { + return take; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; diff --git a/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java index 7fa7b9ed0..ff431cf21 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsModulesVersionsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.actions.modules.types.GetActionModuleVersionsRequestParameters; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionModuleVersion; import com.auth0.client.mgmt.types.CreateActionModuleVersionResponseContent; @@ -50,8 +49,8 @@ public void testList() throws Exception { .list( "id", GetActionModuleVersionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java index f772b44ef..b7a09008a 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java @@ -6,7 +6,6 @@ import com.auth0.client.mgmt.actions.types.RollbackActionModuleRequestParameters; import com.auth0.client.mgmt.actions.types.UpdateActionModuleRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionModuleAction; import com.auth0.client.mgmt.types.ActionModuleListItem; @@ -54,8 +53,8 @@ public void testList() throws Exception { SyncPagingIterable response = client.actions() .modules() .list(GetActionModulesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -396,8 +395,8 @@ public void testListActions() throws Exception { .listActions( "id", GetActionModuleActionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java index a6a673b8f..ae17c7227 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java @@ -3,7 +3,6 @@ import com.auth0.client.mgmt.actions.triggers.types.ListActionTriggerBindingsRequestParameters; import com.auth0.client.mgmt.actions.triggers.types.UpdateActionBindingsRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionBinding; import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; @@ -51,8 +50,8 @@ public void testList() throws Exception { .list( ActionTriggerTypeEnum.POST_LOGIN, ListActionTriggerBindingsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java index 519274b6f..b33e1bc92 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java @@ -5,6 +5,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionVersion; +import com.auth0.client.mgmt.types.DeployActionVersionRequestContent; import com.auth0.client.mgmt.types.DeployActionVersionResponseContent; import com.auth0.client.mgmt.types.GetActionVersionResponseContent; import com.fasterxml.jackson.databind.JsonNode; @@ -49,8 +50,8 @@ public void testList() throws Exception { .list( "actionId", ListActionVersionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) + .page(1) + .perPage(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -113,8 +114,13 @@ public void testDeploy() throws Exception { 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()); + DeployActionVersionResponseContent response = client.actions() + .versions() + .deploy( + "actionId", + "id", + OptionalNullable.of( + DeployActionVersionRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java index 424ad76d6..c293b9be3 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Action; import com.auth0.client.mgmt.types.ActionTrigger; @@ -57,12 +56,12 @@ public void testList() throws Exception { "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"actions\":[{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"post-login\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{}],\"runtime\":\"runtime\",\"secrets\":[{}],\"installed_integration_id\":\"installed_integration_id\",\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{}]}]}")); SyncPagingIterable response = client.actions() .list(ListActionsRequestParameters.builder() - .triggerId(OptionalNullable.of(ActionTriggerTypeEnum.POST_LOGIN)) - .actionName(OptionalNullable.of("actionName")) - .deployed(OptionalNullable.of(true)) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .installed(OptionalNullable.of(true)) + .triggerId(ActionTriggerTypeEnum.POST_LOGIN) + .actionName("actionName") + .deployed(true) + .page(1) + .perPage(1) + .installed(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -214,9 +213,7 @@ public void testDelete() throws Exception { client.actions() .delete( "id", - DeleteActionRequestParameters.builder() - .force(OptionalNullable.of(true)) - .build()); + DeleteActionRequestParameters.builder().force(true).build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("DELETE", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java index 24bbe8ac5..ec5c46d1a 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingPhoneProvidersWireTest.java @@ -5,7 +5,6 @@ import com.auth0.client.mgmt.branding.phone.types.ListBrandingPhoneProvidersRequestParameters; import com.auth0.client.mgmt.branding.phone.types.UpdateBrandingPhoneProviderRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.CreateBrandingPhoneProviderResponseContent; import com.auth0.client.mgmt.types.CreatePhoneProviderSendTestResponseContent; import com.auth0.client.mgmt.types.GetBrandingPhoneProviderResponseContent; @@ -55,7 +54,7 @@ public void testList() throws Exception { .phone() .providers() .list(ListBrandingPhoneProvidersRequestParameters.builder() - .disabled(OptionalNullable.of(true)) + .disabled(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java index f4ff1e235..52fe39f75 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingPhoneTemplatesWireTest.java @@ -5,7 +5,6 @@ import com.auth0.client.mgmt.branding.phone.types.ListPhoneTemplatesRequestParameters; import com.auth0.client.mgmt.branding.phone.types.UpdatePhoneTemplateRequestContent; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.CreatePhoneTemplateResponseContent; import com.auth0.client.mgmt.types.CreatePhoneTemplateTestNotificationResponseContent; import com.auth0.client.mgmt.types.GetPhoneTemplateResponseContent; @@ -55,7 +54,7 @@ public void testList() throws Exception { .phone() .templates() .list(ListPhoneTemplatesRequestParameters.builder() - .disabled(OptionalNullable.of(true)) + .disabled(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java index e6979f834..4eed91a67 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.clientgrants.types.ListClientGrantOrganizationsRequestParameters; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Organization; import com.fasterxml.jackson.databind.JsonNode; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "id", ListClientGrantOrganizationsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java index 0afed0d60..3a33b8d5a 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ClientGrantDefaultForEnum; import com.auth0.client.mgmt.types.ClientGrantResponseContent; @@ -51,13 +50,13 @@ public void testList() throws Exception { "{\"next\":\"next\",\"client_grants\":[{\"id\":\"id\",\"client_id\":\"client_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_usage\":\"deny\",\"allow_any_organization\":true,\"default_for\":\"third_party_clients\",\"is_system\":true,\"subject_type\":\"client\",\"authorization_details_types\":[\"authorization_details_types\"],\"allow_all_scopes\":true}]}")); SyncPagingIterable response = client.clientGrants() .list(ListClientGrantsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .audience(OptionalNullable.of("audience")) - .clientId(OptionalNullable.of("client_id")) - .allowAnyOrganization(OptionalNullable.of(true)) - .subjectType(OptionalNullable.of(ClientGrantSubjectTypeEnum.CLIENT)) - .defaultFor(OptionalNullable.of(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS)) + .from("from") + .take(1) + .audience("audience") + .clientId("client_id") + .allowAnyOrganization(true) + .subjectType(ClientGrantSubjectTypeEnum.CLIENT) + .defaultFor(ClientGrantDefaultForEnum.THIRD_PARTY_CLIENTS) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java index db3475f69..8dcb83090 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsConnectionsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.clients.types.ConnectionsGetRequest; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionForList; import com.auth0.client.mgmt.types.ConnectionStrategyEnum; @@ -49,10 +48,10 @@ public void testGet() throws Exception { .get( "id", ConnectionsGetRequest.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .strategy(Arrays.asList(ConnectionStrategyEnum.AD)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java index 9daf459cb..cf5d3e427 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Client; import com.auth0.client.mgmt.types.CreateClientRequestContent; @@ -53,16 +52,16 @@ public void testList() throws Exception { .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testList_response.json"))); SyncPagingIterable response = client.clients() .list(ListClientsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .isGlobal(OptionalNullable.of(true)) - .isFirstParty(OptionalNullable.of(true)) - .appType(OptionalNullable.of("app_type")) - .externalClientId(OptionalNullable.of("external_client_id")) - .q(OptionalNullable.of("q")) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .isGlobal(true) + .isFirstParty(true) + .appType("app_type") + .externalClientId("external_client_id") + .q("q") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -396,8 +395,8 @@ public void testGet() throws Exception { .get( "id", GetClientRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java index 5fd615de0..d62104e30 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionProfile; import com.auth0.client.mgmt.types.CreateConnectionProfileRequestContent; @@ -51,8 +50,8 @@ public void testList() throws Exception { "{\"next\":\"next\",\"connection_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"]}]}")); SyncPagingIterable response = client.connectionProfiles() .list(ListConnectionProfileRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java index cfcb35959..83a11c143 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsClientsWireTest.java @@ -2,7 +2,6 @@ import com.auth0.client.mgmt.connections.types.GetConnectionEnabledClientsRequestParameters; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionEnabledClient; import com.auth0.client.mgmt.types.UpdateEnabledClientConnectionsRequestContentItem; @@ -47,8 +46,8 @@ public void testGet() throws Exception { .get( "id", GetConnectionEnabledClientsRequestParameters.builder() - .take(OptionalNullable.of(1)) - .from(OptionalNullable.of("from")) + .take(1) + .from("from") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java index 75257a9eb..19f3893bb 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java @@ -6,11 +6,13 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateDirectoryProvisioningRequestContent; import com.auth0.client.mgmt.types.CreateDirectoryProvisioningResponseContent; import com.auth0.client.mgmt.types.DirectoryProvisioning; import com.auth0.client.mgmt.types.GetDirectoryProvisioningDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetDirectoryProvisioningResponseContent; import com.auth0.client.mgmt.types.SynchronizedGroupPayload; +import com.auth0.client.mgmt.types.UpdateDirectoryProvisioningRequestContent; import com.auth0.client.mgmt.types.UpdateDirectoryProvisioningResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -53,8 +55,8 @@ public void testList() throws Exception { SyncPagingIterable response = client.connections() .directoryProvisioning() .list(ListDirectoryProvisioningsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -139,8 +141,12 @@ public void testCreate() throws Exception { .setResponseCode(200) .setBody( "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"all\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); - CreateDirectoryProvisioningResponseContent response = - client.connections().directoryProvisioning().create("id", OptionalNullable.absent()); + CreateDirectoryProvisioningResponseContent response = client.connections() + .directoryProvisioning() + .create( + "id", + OptionalNullable.of(CreateDirectoryProvisioningRequestContent.builder() + .build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); @@ -214,8 +220,12 @@ public void testUpdate() throws Exception { .setResponseCode(200) .setBody( "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"all\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); - UpdateDirectoryProvisioningResponseContent response = - client.connections().directoryProvisioning().update("id", OptionalNullable.absent()); + UpdateDirectoryProvisioningResponseContent response = client.connections() + .directoryProvisioning() + .update( + "id", + OptionalNullable.of(UpdateDirectoryProvisioningRequestContent.builder() + .build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("PATCH", request.getMethod()); @@ -336,8 +346,8 @@ public void testListSynchronizedGroups() throws Exception { .listSynchronizedGroups( "id", ListSynchronizedGroupsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java index 7783e78b5..31ba63822 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsKeysWireTest.java @@ -3,7 +3,9 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.ConnectionKey; +import com.auth0.client.mgmt.types.PostConnectionKeysRequestContent; import com.auth0.client.mgmt.types.PostConnectionsKeysResponseContentItem; +import com.auth0.client.mgmt.types.RotateConnectionKeysRequestContent; import com.auth0.client.mgmt.types.RotateConnectionsKeysResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -106,8 +108,12 @@ public void testCreate() throws Exception { .setResponseCode(200) .setBody( "[{\"kid\":\"kid\",\"cert\":\"cert\",\"pkcs\":\"pkcs\",\"current\":true,\"next\":true,\"current_since\":\"current_since\",\"fingerprint\":\"fingerprint\",\"thumbprint\":\"thumbprint\",\"algorithm\":\"algorithm\",\"key_use\":\"encryption\",\"subject_dn\":\"subject_dn\"}]")); - List response = - client.connections().keys().create("id", OptionalNullable.absent()); + List response = client.connections() + .keys() + .create( + "id", + OptionalNullable.of( + PostConnectionKeysRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); @@ -169,8 +175,12 @@ public void testRotate() throws Exception { .setResponseCode(200) .setBody( "{\"kid\":\"kid\",\"cert\":\"cert\",\"pkcs\":\"pkcs\",\"next\":true,\"fingerprint\":\"fingerprint\",\"thumbprint\":\"thumbprint\",\"algorithm\":\"algorithm\",\"key_use\":\"encryption\",\"subject_dn\":\"subject_dn\"}")); - RotateConnectionsKeysResponseContent response = - client.connections().keys().rotate("id", OptionalNullable.absent()); + RotateConnectionsKeysResponseContent response = client.connections() + .keys() + .rotate( + "id", + OptionalNullable.of( + RotateConnectionKeysRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java index 7ba0ab3b5..dc5991b1b 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsScimConfigurationWireTest.java @@ -5,6 +5,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.CreateScimConfigurationRequestContent; import com.auth0.client.mgmt.types.CreateScimConfigurationResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationDefaultMappingResponseContent; import com.auth0.client.mgmt.types.GetScimConfigurationResponseContent; @@ -52,8 +53,8 @@ public void testList() throws Exception { SyncPagingIterable response = client.connections() .scimConfiguration() .list(ListScimConfigurationsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -135,8 +136,12 @@ public void testCreate() throws Exception { .setResponseCode(200) .setBody( "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"tenant_name\":\"tenant_name\",\"user_id_attribute\":\"user_id_attribute\",\"mapping\":[{\"auth0\":\"auth0\",\"scim\":\"scim\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_on\":\"2024-01-15T09:30:00Z\"}")); - CreateScimConfigurationResponseContent response = - client.connections().scimConfiguration().create("id", OptionalNullable.absent()); + CreateScimConfigurationResponseContent response = client.connections() + .scimConfiguration() + .create( + "id", + OptionalNullable.of( + CreateScimConfigurationRequestContent.builder().build())); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java index 3a5ca65b9..01a2b4091 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectionForList; import com.auth0.client.mgmt.types.ConnectionIdentityProviderEnum; @@ -53,11 +52,11 @@ public void testList() throws Exception { "{\"next\":\"next\",\"connections\":[{\"name\":\"name\",\"display_name\":\"display_name\",\"options\":{\"key\":\"value\"},\"id\":\"id\",\"strategy\":\"strategy\",\"realms\":[\"realms\"],\"is_domain_connection\":true,\"show_as_button\":true,\"authentication\":{\"active\":true},\"connected_accounts\":{\"active\":true},\"cross_app_access_requesting_app\":{\"active\":true}}]}")); SyncPagingIterable response = client.connections() .list(ListConnectionsQueryParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .name(OptionalNullable.of("name")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .name("name") + .fields("fields") + .includeFields(true) .strategy(Arrays.asList(ConnectionStrategyEnum.AD)) .build()); RecordedRequest request = server.takeRequest(); @@ -191,8 +190,8 @@ public void testGet() throws Exception { .get( "id", GetConnectionRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java index 0249aef2a..f8b0f513e 100644 --- a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.CreateCustomDomainRequestContent; import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent; import com.auth0.client.mgmt.types.CustomDomain; @@ -55,10 +54,10 @@ public void testList() throws Exception { "[{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"},\"relying_party_identifier\":\"relying_party_identifier\"}]")); List response = client.customDomains() .list(ListCustomDomainsRequestParameters.builder() - .q(OptionalNullable.of("q")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .sort(OptionalNullable.of("sort")) + .q("q") + .fields("fields") + .includeFields(true) + .sort("sort") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java b/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java index 2bfe290f1..b487d7f64 100644 --- a/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/DeviceCredentialsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreatePublicKeyDeviceCredentialRequestContent; import com.auth0.client.mgmt.types.CreatePublicKeyDeviceCredentialResponseContent; @@ -48,14 +47,14 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"device_credentials\":[{\"id\":\"id\",\"device_name\":\"device_name\",\"device_id\":\"device_id\",\"type\":\"public_key\",\"user_id\":\"user_id\",\"client_id\":\"client_id\"}]}")); SyncPagingIterable response = client.deviceCredentials() .list(ListDeviceCredentialsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .userId(OptionalNullable.of("user_id")) - .clientId(OptionalNullable.of("client_id")) - .type(OptionalNullable.of(DeviceCredentialTypeEnum.PUBLIC_KEY)) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .userId("user_id") + .clientId("client_id") + .type(DeviceCredentialTypeEnum.PUBLIC_KEY) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java b/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java index 197c90262..fcd3e445d 100644 --- a/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EmailsProviderWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.emails.types.CreateEmailProviderRequestContent; import com.auth0.client.mgmt.emails.types.GetEmailProviderRequestParameters; import com.auth0.client.mgmt.emails.types.UpdateEmailProviderRequestContent; @@ -51,8 +50,8 @@ public void testGet() throws Exception { GetEmailProviderResponseContent response = client.emails() .provider() .get(GetEmailProviderRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java index c5750f9c3..f86d8b646 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.eventstreams.types.ListEventStreamDeliveriesRequestParameters; import com.auth0.client.mgmt.types.EventStreamDelivery; import com.auth0.client.mgmt.types.GetEventStreamDeliveryHistoryResponseContent; @@ -48,12 +47,12 @@ public void testList() throws Exception { .list( "id", ListEventStreamDeliveriesRequestParameters.builder() - .statuses(OptionalNullable.of("statuses")) - .eventTypes(OptionalNullable.of("event_types")) - .dateFrom(OptionalNullable.of("date_from")) - .dateTo(OptionalNullable.of("date_to")) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .statuses("statuses") + .eventTypes("event_types") + .dateFrom("date_from") + .dateTo("date_to") + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java index 56f4e7daf..3872db15f 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; @@ -59,8 +58,8 @@ public void testList() throws Exception { "{\"eventStreams\":[{\"id\":\"id\",\"name\":\"name\",\"subscriptions\":[{}],\"destination\":{\"type\":\"webhook\",\"configuration\":{\"webhook_endpoint\":\"webhook_endpoint\",\"webhook_authorization\":{\"method\":\"basic\",\"username\":\"username\"}}},\"status\":\"enabled\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); SyncPagingIterable response = client.eventStreams() .list(ListEventStreamsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java index 28b8c35a6..5b8d25d82 100644 --- a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.EventStreamSubscribeEventsEventTypeEnum; import com.auth0.client.mgmt.types.EventStreamSubscribeEventsResponseContent; import com.auth0.client.mgmt.types.SubscribeEventsRequestParameters; @@ -41,8 +40,8 @@ public void testSubscribe() throws Exception { server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); Iterable response = client.events() .subscribe(SubscribeEventsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .fromTimestamp(OptionalNullable.of("from_timestamp")) + .from("from") + .fromTimestamp("from_timestamp") .eventType(Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java b/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java index d61853f15..7d1ae52de 100644 --- a/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FlowsExecutionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.flows.types.GetFlowExecutionRequestParameters; import com.auth0.client.mgmt.flows.types.ListFlowExecutionsRequestParameters; @@ -51,8 +50,8 @@ public void testList() throws Exception { .list( "flow_id", ListFlowExecutionsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java index f35431d60..60ef90a12 100644 --- a/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FlowsVaultConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.flows.vault.types.ListFlowsVaultConnectionsRequestParameters; import com.auth0.client.mgmt.flows.vault.types.UpdateFlowsVaultConnectionRequestContent; @@ -56,9 +55,9 @@ public void testList() throws Exception { .vault() .connections() .list(ListFlowsVaultConnectionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java b/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java index 7eb3fc2a0..dd9a550af 100644 --- a/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FlowsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateFlowRequestContent; import com.auth0.client.mgmt.types.CreateFlowResponseContent; @@ -53,10 +52,10 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"flows\":[{\"id\":\"id\",\"name\":\"name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"executed_at\":\"executed_at\"}]}")); SyncPagingIterable response = client.flows() .list(ListFlowsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .synchronous(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .synchronous(true) .hydrate(Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java index afbbcc10a..29fa7b208 100644 --- a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateFormRequestContent; import com.auth0.client.mgmt.types.CreateFormResponseContent; @@ -52,9 +51,9 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"forms\":[{\"id\":\"id\",\"name\":\"name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}]}")); SyncPagingIterable response = client.forms() .list(ListFormsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .hydrate(Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java index ba2fdfeb2..16612e1a2 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; import com.auth0.client.mgmt.types.GroupMember; @@ -47,10 +46,10 @@ public void testGet() throws Exception { .get( "id", GetGroupMembersRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java index 428bbc478..921d62672 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.groups.types.CreateGroupRolesRequestParameters; import com.auth0.client.mgmt.groups.types.DeleteGroupRolesRequestContent; @@ -50,8 +49,8 @@ public void testList() throws Exception { .list( "id", ListGroupRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java index b45bcac33..47a11f02f 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetGroupResponseContent; import com.auth0.client.mgmt.types.Group; @@ -45,14 +44,14 @@ public void testList() throws Exception { "{\"groups\":[{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"tenant_name\":\"tenant_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\",\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); SyncPagingIterable response = client.groups() .list(ListGroupsRequestParameters.builder() - .connectionId(OptionalNullable.of("connection_id")) - .name(OptionalNullable.of("name")) - .externalId(OptionalNullable.of("external_id")) - .search(OptionalNullable.of("search")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .connectionId("connection_id") + .name("name") + .externalId("external_id") + .search("search") + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java b/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java index 6a11a7e91..19bbda9a3 100644 --- a/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GuardianFactorsSmsWireTest.java @@ -13,6 +13,7 @@ import com.auth0.client.mgmt.types.SetGuardianFactorsProviderSmsTwilioResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.Optional; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; @@ -309,7 +310,7 @@ public void testGetTemplates() throws Exception { .setResponseCode(200) .setBody( "{\"enrollment_message\":\"enrollment_message\",\"verification_message\":\"verification_message\"}")); - GetGuardianFactorSmsTemplatesResponseContent response = + Optional response = client.guardian().factors().sms().getTemplates(); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/HooksWireTest.java b/src/test/java/com/auth0/client/mgmt/HooksWireTest.java index 2fe6f78aa..4f0d3264f 100644 --- a/src/test/java/com/auth0/client/mgmt/HooksWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/HooksWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateHookRequestContent; import com.auth0.client.mgmt.types.CreateHookResponseContent; @@ -51,12 +50,12 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"hooks\":[{\"triggerId\":\"triggerId\",\"id\":\"id\",\"name\":\"name\",\"enabled\":true,\"script\":\"script\",\"dependencies\":{\"key\":\"value\"}}]}")); SyncPagingIterable response = client.hooks() .list(ListHooksRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .enabled(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .triggerId(OptionalNullable.of(HookTriggerIdEnum.CREDENTIALS_EXCHANGE)) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .triggerId(HookTriggerIdEnum.CREDENTIALS_EXCHANGE) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -172,11 +171,7 @@ public void testGet() throws Exception { .setBody( "{\"triggerId\":\"triggerId\",\"id\":\"id\",\"name\":\"name\",\"enabled\":true,\"script\":\"script\",\"dependencies\":{\"key\":\"value\"}}")); GetHookResponseContent response = client.hooks() - .get( - "id", - GetHookRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .build()); + .get("id", GetHookRequestParameters.builder().fields("fields").build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("GET", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java b/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java index e3602abf5..56fb81048 100644 --- a/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/JobsErrorsWireTest.java @@ -4,6 +4,7 @@ import com.auth0.client.mgmt.jobs.types.ErrorsGetResponse; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.Optional; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; @@ -36,7 +37,7 @@ public void teardown() throws Exception { public void testGet() throws Exception { server.enqueue( new MockResponse().setResponseCode(200).setBody("[{\"user\":{\"key\":\"value\"},\"errors\":[{}]}]")); - ErrorsGetResponse response = client.jobs().errors().get("id"); + Optional response = client.jobs().errors().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("GET", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java b/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java index 527fbe67e..2e0743a45 100644 --- a/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/KeysEncryptionWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.keys.types.CreateEncryptionKeyRequestContent; import com.auth0.client.mgmt.keys.types.ImportEncryptionKeyRequestContent; @@ -52,9 +51,9 @@ public void testList() throws Exception { SyncPagingIterable response = client.keys() .encryption() .list(ListEncryptionKeysRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/LogsWireTest.java b/src/test/java/com/auth0/client/mgmt/LogsWireTest.java index 56248e036..17e51576e 100644 --- a/src/test/java/com/auth0/client/mgmt/LogsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/LogsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetLogResponseContent; import com.auth0.client.mgmt.types.ListLogsRequestParameters; @@ -45,13 +44,13 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"length\":1.1,\"total\":1.1,\"logs\":[{\"date\":\"date\",\"type\":\"type\",\"description\":\"description\",\"connection\":\"connection\",\"connection_id\":\"connection_id\",\"client_id\":\"client_id\",\"client_name\":\"client_name\",\"ip\":\"ip\",\"hostname\":\"hostname\",\"user_id\":\"user_id\",\"user_name\":\"user_name\",\"audience\":\"audience\",\"scope\":\"scope\",\"strategy\":\"strategy\",\"strategy_type\":\"strategy_type\",\"log_id\":\"log_id\",\"isMobile\":true,\"details\":{\"key\":\"value\"},\"user_agent\":\"user_agent\"}]}")); SyncPagingIterable response = client.logs() .list(ListLogsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .sort(OptionalNullable.of("sort")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .includeTotals(OptionalNullable.of(true)) - .search(OptionalNullable.of("search")) + .page(1) + .perPage(1) + .sort("sort") + .fields("fields") + .includeFields(true) + .includeTotals(true) + .search("search") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java index 1018aebe7..96e0f9190 100644 --- a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateNetworkAclRequestContent; import com.auth0.client.mgmt.types.GetNetworkAclsResponseContent; @@ -53,9 +52,9 @@ public void testList() throws Exception { "{\"network_acls\":[{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}],\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); SyncPagingIterable response = client.networkAcls() .list(ListNetworkAclsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java index cc1eddc75..cfb2847b1 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsClientGrantsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.AssociateOrganizationClientGrantRequestContent; import com.auth0.client.mgmt.organizations.types.ListOrganizationClientGrantsRequestParameters; @@ -50,11 +49,11 @@ public void testList() throws Exception { .list( "id", ListOrganizationClientGrantsRequestParameters.builder() - .audience(OptionalNullable.of("audience")) - .clientId(OptionalNullable.of("client_id")) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .audience("audience") + .clientId("client_id") + .page(1) + .perPage(1) + .includeTotals(true) .grantIds(Arrays.asList("grant_ids")) .build()); RecordedRequest request = server.takeRequest(); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java index 084ae1625..6352f0fba 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationAllConnectionRequestParameters; import com.auth0.client.mgmt.organizations.types.ListOrganizationAllConnectionsRequestParameters; @@ -52,10 +51,10 @@ public void testList() throws Exception { .list( "id", ListOrganizationAllConnectionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .isEnabled(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .isEnabled(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java index e3e17eed4..2c94c550e 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsDiscoveryDomainsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationDiscoveryDomainRequestContent; import com.auth0.client.mgmt.organizations.types.ListOrganizationDiscoveryDomainsRequestParameters; @@ -53,8 +52,8 @@ public void testList() throws Exception { .list( "id", ListOrganizationDiscoveryDomainsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java index 00eb0d9b2..38420ee5b 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsEnabledConnectionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.AddOrganizationConnectionRequestContent; import com.auth0.client.mgmt.organizations.types.ListOrganizationConnectionsRequestParameters; @@ -52,9 +51,9 @@ public void testList() throws Exception { .list( "id", ListOrganizationConnectionsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java index 97b14b84b..1b770d2e4 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.groups.types.CreateOrganizationGroupRolesRequestContent; import com.auth0.client.mgmt.organizations.groups.types.DeleteOrganizationGroupRolesRequestContent; @@ -52,8 +51,8 @@ public void testList() throws Exception { "organization_id", "group_id", ListOrganizationGroupRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java index 04a42544c..da3667f97 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.ListOrganizationGroupsRequestParameters; import com.auth0.client.mgmt.types.Group; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "organization_id", ListOrganizationGroupsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java index 93c81cd36..3f90d23f3 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsInvitationsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationInvitationRequestContent; import com.auth0.client.mgmt.organizations.types.GetOrganizationInvitationRequestParameters; @@ -53,12 +52,12 @@ public void testList() throws Exception { .list( "id", ListOrganizationInvitationsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .sort(OptionalNullable.of("sort")) + .page(1) + .perPage(1) + .includeTotals(true) + .fields("fields") + .includeFields(true) + .sort("sort") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -205,8 +204,8 @@ public void testGet() throws Exception { "id", "invitation_id", GetOrganizationInvitationRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java index 8ede4bf69..185af0021 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesSourcesGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.members.effectiveroles.sources.types.ListOrganizationMemberRoleSourceGroupsRequestParameters; import com.auth0.client.mgmt.types.Group; @@ -52,8 +51,8 @@ public void testList() throws Exception { "user_id", ListOrganizationMemberRoleSourceGroupsRequestParameters.builder() .roleId("role_id") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java index 1d71bf6e3..241d1bbb0 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersEffectiveRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.members.types.ListOrganizationMemberEffectiveRolesRequestParameters; import com.auth0.client.mgmt.types.OrganizationMemberEffectiveRole; @@ -49,8 +48,8 @@ public void testList() throws Exception { "id", "user_id", ListOrganizationMemberEffectiveRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java index f91123464..cd6175538 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.members.types.AssignOrganizationMemberRolesRequestContent; import com.auth0.client.mgmt.organizations.members.types.DeleteOrganizationMemberRolesRequestContent; @@ -52,9 +51,9 @@ public void testList() throws Exception { "id", "user_id", ListOrganizationMemberRolesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java index 395b97a50..eaff53334 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsMembersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.types.CreateOrganizationMemberRequestContent; import com.auth0.client.mgmt.organizations.types.DeleteOrganizationMembersRequestContent; @@ -50,10 +49,10 @@ public void testList() throws Exception { .list( "id", ListOrganizationMembersRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java index a1656a2e0..6a7bd5c59 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; import com.auth0.client.mgmt.types.RoleMember; @@ -49,10 +48,10 @@ public void testList() throws Exception { "id", "role_id", ListOrganizationRoleMembersRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java index 5330fd239..5507d18f9 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; @@ -50,9 +49,9 @@ public void testList() throws Exception { "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.organizations() .list(ListOrganizationsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .sort(OptionalNullable.of("sort")) + .from("from") + .take(1) + .sort("sort") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java b/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java index 4dad4ed1b..171b08c6a 100644 --- a/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.prompts.types.BulkUpdateAculRequestContent; import com.auth0.client.mgmt.prompts.types.ListAculsRequestParameters; @@ -55,14 +54,14 @@ public void testList() throws Exception { SyncPagingIterable response = client.prompts() .rendering() .list(ListAculsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .prompt(OptionalNullable.of("prompt")) - .screen(OptionalNullable.of("screen")) - .renderingMode(OptionalNullable.of(AculRenderingModeEnum.ADVANCED)) + .fields("fields") + .includeFields(true) + .page(1) + .perPage(1) + .includeTotals(true) + .prompt("prompt") + .screen("screen") + .renderingMode(AculRenderingModeEnum.ADVANCED) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java b/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java index e34af91e2..2751c90f2 100644 --- a/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RateLimitPoliciesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateRateLimitPolicyRequestContent; import com.auth0.client.mgmt.types.CreateRateLimitPolicyResponseContent; @@ -57,11 +56,11 @@ public void testList() throws Exception { "{\"rate_limit_policies\":[{\"id\":\"id\",\"resource\":\"oauth_authentication_api\",\"consumer\":\"client\",\"consumer_selector\":\"consumer_selector\",\"configuration\":{\"action\":\"allow\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); SyncPagingIterable response = client.rateLimitPolicies() .list(ListRateLimitPoliciesRequestParameters.builder() - .resource(OptionalNullable.of(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API)) - .consumer(OptionalNullable.of(RateLimitPolicyConsumerEnum.CLIENT)) - .consumerSelector(OptionalNullable.of("consumer_selector")) - .take(OptionalNullable.of(1)) - .from(OptionalNullable.of("from")) + .resource(RateLimitPolicyResourceEnum.OAUTH_AUTHENTICATION_API) + .consumer(RateLimitPolicyConsumerEnum.CLIENT) + .consumerSelector("consumer_selector") + .take(1) + .from("from") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java b/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java index 743ec853f..9f7cff2ca 100644 --- a/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetRefreshTokenResponseContent; import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; @@ -49,11 +48,11 @@ public void testList() throws Exception { SyncPagingIterable response = client.refreshTokens() .list(GetRefreshTokensRequestParameters.builder() .userId("user_id") - .clientId(OptionalNullable.of("client_id")) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .clientId("client_id") + .from("from") + .take(1) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java b/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java index a3c51d640..9e142aa87 100644 --- a/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateResourceServerRequestContent; import com.auth0.client.mgmt.types.CreateResourceServerResponseContent; @@ -51,10 +50,10 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"resource_servers\":[{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"allow_online_access\":true,\"allow_online_access_with_ephemeral_sessions\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"alg\":\"RSA-OAEP-256\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true},\"authorization_policy\":{\"policy_id\":\"policy_id\"},\"client_id\":\"client_id\"}]}")); SyncPagingIterable response = client.resourceServers() .list(ListResourceServerRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .includeFields(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .includeFields(true) .identifiers(Arrays.asList("identifiers")) .build()); RecordedRequest request = server.takeRequest(); @@ -154,7 +153,7 @@ public void testGet() throws Exception { .get( "id", GetResourceServerRequestParameters.builder() - .includeFields(OptionalNullable.of(true)) + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java index 8d4fd06a2..7c8558966 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.roles.types.AssignRoleGroupsRequestContent; import com.auth0.client.mgmt.roles.types.DeleteRoleGroupsRequestContent; @@ -49,10 +48,7 @@ public void testGet() throws Exception { .groups() .get( "id", - ListRoleGroupsParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) - .build()); + ListRoleGroupsParameters.builder().from("from").take(1).build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("GET", request.getMethod()); diff --git a/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java index af57125ac..02921701a 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesPermissionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.roles.types.AddRolePermissionsRequestContent; import com.auth0.client.mgmt.roles.types.DeleteRolePermissionsRequestContent; @@ -51,9 +50,9 @@ public void testList() throws Exception { .list( "id", ListRolePermissionsRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .perPage(1) + .page(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java index 710571a69..4f6282834 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesUsersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.roles.types.AssignRoleUsersRequestContent; import com.auth0.client.mgmt.roles.types.ListRoleUsersRequestParameters; @@ -49,8 +48,8 @@ public void testList() throws Exception { .list( "id", ListRoleUsersRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RolesWireTest.java b/src/test/java/com/auth0/client/mgmt/RolesWireTest.java index 461ba3890..aadfadda3 100644 --- a/src/test/java/com/auth0/client/mgmt/RolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateRoleRequestContent; import com.auth0.client.mgmt.types.CreateRoleResponseContent; @@ -49,10 +48,10 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"roles\":[{\"id\":\"id\",\"name\":\"name\",\"description\":\"description\"}]}")); SyncPagingIterable response = client.roles() .list(ListRolesRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .nameFilter(OptionalNullable.of("name_filter")) + .perPage(1) + .page(1) + .includeTotals(true) + .nameFilter("name_filter") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/RulesWireTest.java b/src/test/java/com/auth0/client/mgmt/RulesWireTest.java index f8b04fc5c..f886cf004 100644 --- a/src/test/java/com/auth0/client/mgmt/RulesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RulesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateRuleRequestContent; import com.auth0.client.mgmt.types.CreateRuleResponseContent; @@ -50,12 +49,12 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"rules\":[{\"name\":\"name\",\"id\":\"id\",\"enabled\":true,\"script\":\"script\",\"order\":1.1,\"stage\":\"stage\"}]}")); SyncPagingIterable response = client.rules() .list(ListRulesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .enabled(OptionalNullable.of(true)) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .enabled(true) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -166,8 +165,8 @@ public void testGet() throws Exception { .get( "id", GetRuleRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java index 2d195406b..1fcacba3c 100644 --- a/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/SelfServiceProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateSelfServiceProfileRequestContent; import com.auth0.client.mgmt.types.CreateSelfServiceProfileResponseContent; @@ -49,9 +48,9 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"self_service_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"description\":\"description\",\"user_attributes\":[{\"name\":\"name\",\"description\":\"description\",\"is_optional\":true}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"allowed_strategies\":[\"oidc\"],\"user_attribute_profile_id\":\"user_attribute_profile_id\"}]}")); SyncPagingIterable response = client.selfServiceProfiles() .list(ListSelfServiceProfilesRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/StatsWireTest.java b/src/test/java/com/auth0/client/mgmt/StatsWireTest.java index 0b912d2ea..605afe74b 100644 --- a/src/test/java/com/auth0/client/mgmt/StatsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/StatsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.DailyStats; import com.auth0.client.mgmt.types.GetDailyStatsRequestParameters; import com.fasterxml.jackson.databind.JsonNode; @@ -87,8 +86,8 @@ public void testGetDaily() throws Exception { "[{\"date\":\"date\",\"logins\":1,\"signups\":1,\"leaked_passwords\":1,\"updated_at\":\"updated_at\",\"created_at\":\"created_at\"}]")); List response = client.stats() .getDaily(GetDailyStatsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .to(OptionalNullable.of("to")) + .from("from") + .to("to") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java index 390f6ea52..ae99ffd2e 100644 --- a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.tenants.types.GetTenantSettingsRequestParameters; import com.auth0.client.mgmt.tenants.types.UpdateTenantSettingsRequestContent; import com.auth0.client.mgmt.types.GetTenantSettingsResponseContent; @@ -44,8 +43,8 @@ public void testGet() throws Exception { GetTenantSettingsResponseContent response = client.tenants() .settings() .get(GetTenantSettingsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java index ab630d029..22d450073 100644 --- a/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/TokenExchangeProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateTokenExchangeProfileRequestContent; import com.auth0.client.mgmt.types.CreateTokenExchangeProfileResponseContent; @@ -49,8 +48,8 @@ public void testList() throws Exception { "{\"next\":\"next\",\"token_exchange_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"subject_token_type\":\"subject_token_type\",\"action_id\":\"action_id\",\"type\":\"custom_authentication\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); SyncPagingIterable response = client.tokenExchangeProfiles() .list(TokenExchangeProfilesListRequest.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java index 6f98db41c..961f7d2ef 100644 --- a/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserAttributeProfilesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateUserAttributeProfileRequestContent; import com.auth0.client.mgmt.types.CreateUserAttributeProfileResponseContent; @@ -53,8 +52,8 @@ public void testList() throws Exception { "{\"next\":\"next\",\"user_attribute_profiles\":[{\"id\":\"id\",\"name\":\"name\",\"user_attributes\":{\"key\":{\"description\":\"description\",\"label\":\"label\",\"profile_required\":true,\"auth0_mapping\":\"auth0_mapping\"}}}]}")); SyncPagingIterable response = client.userAttributeProfiles() .list(ListUserAttributeProfileRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java b/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java index 0fad1f5e7..29ed194dc 100644 --- a/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserBlocksWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.types.DeleteUserBlocksByIdentifierRequestParameters; import com.auth0.client.mgmt.types.ListUserBlocksByIdentifierRequestParameters; import com.auth0.client.mgmt.types.ListUserBlocksByIdentifierResponseContent; @@ -47,7 +46,7 @@ public void testListByIdentifier() throws Exception { ListUserBlocksByIdentifierResponseContent response = client.userBlocks() .listByIdentifier(ListUserBlocksByIdentifierRequestParameters.builder() .identifier("identifier") - .considerBruteForceEnablement(OptionalNullable.of(true)) + .considerBruteForceEnablement(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -120,7 +119,7 @@ public void testList() throws Exception { .list( "id", ListUserBlocksRequestParameters.builder() - .considerBruteForceEnablement(OptionalNullable.of(true)) + .considerBruteForceEnablement(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java index 6a8bb6299..4951facc4 100644 --- a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.DeleteUserGrantByUserIdRequestParameters; import com.auth0.client.mgmt.types.ListUserGrantsRequestParameters; @@ -45,12 +44,12 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"grants\":[{\"id\":\"id\",\"clientID\":\"clientID\",\"user_id\":\"user_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_id\":\"organization_id\"}]}")); SyncPagingIterable response = client.userGrants() .list(ListUserGrantsRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .userId(OptionalNullable.of("user_id")) - .clientId(OptionalNullable.of("client_id")) - .audience(OptionalNullable.of("audience")) + .perPage(1) + .page(1) + .includeTotals(true) + .userId("user_id") + .clientId("client_id") + .audience("audience") .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java index 4e644b1ae..00778ed30 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersAuthenticationMethodsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.AuthenticationTypeEnum; import com.auth0.client.mgmt.types.CreateUserAuthenticationMethodResponseContent; @@ -58,9 +57,9 @@ public void testList() throws Exception { .list( "id", ListUserAuthenticationMethodsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java index 3dc8b55fd..a74338fc4 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersConnectedAccountsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ConnectedAccount; import com.auth0.client.mgmt.users.types.GetUserConnectedAccountsRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "id", GetUserConnectedAccountsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java index 54c0c7ddb..7fe639a9a 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsSourcesRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserEffectivePermissionRoleSourceResponseContent; import com.auth0.client.mgmt.users.effectivepermissions.sources.types.ListUserEffectivePermissionRoleSourceRequestParameters; @@ -51,8 +50,8 @@ public void testList() throws Exception { ListUserEffectivePermissionRoleSourceRequestParameters.builder() .resourceServerIdentifier("resource_server_identifier") .permissionName("permission_name") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java index e1584faad..d0829a208 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectivePermissionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserEffectivePermissionResponseContent; import com.auth0.client.mgmt.users.types.ListUserEffectivePermissionsRequestParameters; @@ -48,8 +47,8 @@ public void testList() throws Exception { "id", ListUserEffectivePermissionsRequestParameters.builder() .resourceServerIdentifier("resource_server_identifier") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java index 9f6471f68..7f9fbeab1 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesSourcesGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Group; import com.auth0.client.mgmt.users.effectiveroles.sources.types.ListUserRoleSourceGroupsRequestParameters; @@ -50,8 +49,8 @@ public void testList() throws Exception { "id", ListUserRoleSourceGroupsRequestParameters.builder() .roleId("role_id") - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java index 20eeae317..df417b616 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersEffectiveRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserEffectiveRole; import com.auth0.client.mgmt.users.types.ListUserEffectiveRolesRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "id", ListUserEffectiveRolesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java deleted file mode 100644 index fcf094466..000000000 --- a/src/test/java/com/auth0/client/mgmt/UsersFederatedConnectionsTokensetsWireTest.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.auth0.client.mgmt; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.types.FederatedConnectionTokenSet; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.util.List; -import okhttp3.mockwebserver.MockResponse; -import okhttp3.mockwebserver.MockWebServer; -import okhttp3.mockwebserver.RecordedRequest; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; - -public class UsersFederatedConnectionsTokensetsWireTest { - private MockWebServer server; - private ManagementApi client; - private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; - - @BeforeEach - public void setup() throws Exception { - server = new MockWebServer(); - server.start(); - client = ManagementApi.builder() - .url(server.url("/").toString()) - .token("test-token") - .build(); - } - - @AfterEach - public void teardown() throws Exception { - server.shutdown(); - } - - @Test - public void testList() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "[{\"id\":\"id\",\"connection\":\"connection\",\"scope\":\"scope\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"issued_at\":\"2024-01-15T09:30:00Z\",\"last_used_at\":\"2024-01-15T09:30:00Z\"}]")); - List response = - client.users().federatedConnectionsTokensets().list("id"); - RecordedRequest request = server.takeRequest(); - Assertions.assertNotNull(request); - Assertions.assertEquals("GET", request.getMethod()); - - // Validate response body - Assertions.assertNotNull(response, "Response should not be null"); - String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "[\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"connection\": \"connection\",\n" - + " \"scope\": \"scope\",\n" - + " \"expires_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"issued_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"last_used_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + "]"; - JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); - JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); - Assertions.assertTrue( - jsonEquals(expectedResponseNode, actualResponseNode), - "Response body structure does not match expected"); - if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { - String discriminator = null; - if (actualResponseNode.has("type")) - discriminator = actualResponseNode.get("type").asText(); - else if (actualResponseNode.has("_type")) - discriminator = actualResponseNode.get("_type").asText(); - else if (actualResponseNode.has("kind")) - discriminator = actualResponseNode.get("kind").asText(); - Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); - Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); - } - - if (!actualResponseNode.isNull()) { - Assertions.assertTrue( - actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), - "response should be a valid JSON value"); - } - - if (actualResponseNode.isArray()) { - Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); - } - if (actualResponseNode.isObject()) { - Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); - } - } - - @Test - public void testDelete() throws Exception { - server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); - client.users().federatedConnectionsTokensets().delete("id", "tokenset_id"); - RecordedRequest request = server.takeRequest(); - Assertions.assertNotNull(request); - Assertions.assertEquals("DELETE", request.getMethod()); - } - - /** - * Compares two JsonNodes with numeric equivalence and null safety. - * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. - * Allows 'actual' to have extra fields (e.g., default values added during serialization). - */ - private boolean jsonEquals(JsonNode expected, JsonNode actual) { - if (expected == null && actual == null) return true; - if (expected == null || actual == null) return false; - if (expected.equals(actual)) return true; - if (expected.isNumber() && actual.isNumber()) - return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; - if (expected.isObject() && actual.isObject()) { - java.util.Iterator> iter = expected.fields(); - while (iter.hasNext()) { - java.util.Map.Entry entry = iter.next(); - JsonNode actualValue = actual.get(entry.getKey()); - if (actualValue == null) { - if (!entry.getValue().isNull()) return false; - } else if (!jsonEquals(entry.getValue(), actualValue)) return false; - } - return true; - } - if (expected.isArray() && actual.isArray()) { - if (expected.size() != actual.size()) return false; - for (int i = 0; i < expected.size(); i++) { - if (!jsonEquals(expected.get(i), actual.get(i))) return false; - } - return true; - } - return false; - } -} diff --git a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java index ad51418f2..13198b1fa 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.UserGroupsResponseSchema; import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; @@ -47,10 +46,10 @@ public void testGet() throws Exception { .get( "id", GetUserGroupsRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .fields("fields") + .includeFields(true) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java index 3316ff72f..bb7b8b8b7 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersLogsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Log; import com.auth0.client.mgmt.users.types.ListUserLogsRequestParameters; @@ -47,10 +46,10 @@ public void testList() throws Exception { .list( "id", ListUserLogsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .sort(OptionalNullable.of("sort")) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .sort("sort") + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java index be1a82cff..8c133e1d0 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Organization; import com.auth0.client.mgmt.users.types.ListUserOrganizationsRequestParameters; @@ -47,9 +46,9 @@ public void testList() throws Exception { .list( "id", ListUserOrganizationsRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java index 24ba7238e..2997a796b 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersPermissionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.PermissionRequestPayload; import com.auth0.client.mgmt.types.UserPermissionSchema; @@ -51,9 +50,9 @@ public void testList() throws Exception { .list( "id", ListUserPermissionsRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .perPage(1) + .page(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java index 13f3008b9..79ce31f9a 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersRefreshTokenWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.users.types.ListRefreshTokensRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "user_id", ListRefreshTokensRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java index 7c9f540e9..2470c1bcc 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersRolesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Role; import com.auth0.client.mgmt.users.types.AssignUserRolesRequestContent; @@ -50,9 +49,9 @@ public void testList() throws Exception { .list( "id", ListUserRolesRequestParameters.builder() - .perPage(OptionalNullable.of(1)) - .page(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) + .perPage(1) + .page(1) + .includeTotals(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java index 213c34bae..97409e065 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersSessionsWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.SessionResponseContent; import com.auth0.client.mgmt.users.types.ListUserSessionsRequestParameters; @@ -47,8 +46,8 @@ public void testList() throws Exception { .list( "user_id", ListUserSessionsRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/UsersWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersWireTest.java index 3f3a5e2f7..f575aefa9 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateUserRequestContent; import com.auth0.client.mgmt.types.CreateUserResponseContent; @@ -55,16 +54,16 @@ public void testList() throws Exception { "{\"start\":1.1,\"limit\":1.1,\"length\":1.1,\"total\":1.1,\"users\":[{\"user_id\":\"user_id\",\"email\":\"email\",\"email_verified\":true,\"username\":\"username\",\"phone_number\":\"phone_number\",\"phone_verified\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"identities\":[{}],\"app_metadata\":{\"key\":\"value\"},\"user_metadata\":{\"key\":\"value\"},\"picture\":\"picture\",\"name\":\"name\",\"nickname\":\"nickname\",\"multifactor\":[\"multifactor\"],\"multifactor_last_modified\":\"2024-01-15T09:30:00Z\",\"last_ip\":\"last_ip\",\"last_login\":\"2024-01-15T09:30:00Z\",\"last_password_reset\":\"2024-01-15T09:30:00Z\",\"logins_count\":1,\"blocked\":true,\"given_name\":\"given_name\",\"family_name\":\"family_name\"}]}")); SyncPagingIterable response = client.users() .list(ListUsersRequestParameters.builder() - .page(OptionalNullable.of(1)) - .perPage(OptionalNullable.of(1)) - .includeTotals(OptionalNullable.of(true)) - .sort(OptionalNullable.of("sort")) - .connection(OptionalNullable.of("connection")) - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) - .q(OptionalNullable.of("q")) - .searchEngine(OptionalNullable.of(SearchEngineVersionsEnum.V1)) - .primaryOrder(OptionalNullable.of(true)) + .page(1) + .perPage(1) + .includeTotals(true) + .sort("sort") + .connection("connection") + .fields("fields") + .includeFields(true) + .q("q") + .searchEngine(SearchEngineVersionsEnum.V1) + .primaryOrder(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -206,8 +205,8 @@ public void testListUsersByEmail() throws Exception { List response = client.users() .listUsersByEmail(ListUsersByEmailRequestParameters.builder() .email("email") - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -294,8 +293,8 @@ public void testGet() throws Exception { .get( "id", GetUserRequestParameters.builder() - .fields(OptionalNullable.of("fields")) - .includeFields(OptionalNullable.of(true)) + .fields("fields") + .includeFields(true) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java b/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java index ff1f81abd..2db0c27cc 100644 --- a/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/VerifiableCredentialsVerificationTemplatesWireTest.java @@ -1,7 +1,6 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateVerifiableCredentialTemplateResponseContent; import com.auth0.client.mgmt.types.GetVerifiableCredentialTemplateResponseContent; @@ -54,8 +53,8 @@ public void testList() throws Exception { .verification() .templates() .list(ListVerifiableCredentialTemplatesRequestParameters.builder() - .from(OptionalNullable.of("from")) - .take(OptionalNullable.of(1)) + .from("from") + .take(1) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json index d8b0169a8..3dc352a50 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -50,6 +53,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json index d8b0169a8..3dc352a50 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -50,6 +53,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json index d8b0169a8..3dc352a50 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json @@ -15,6 +15,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], @@ -50,6 +53,9 @@ "asns": [ 1 ], + "auth0_managed": [ + "auth0_managed" + ], "geo_country_codes": [ "geo_country_codes" ], From c4d0def56f15b2b8f00059dc91e800bcaf36e8c3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:05:53 +0000 Subject: [PATCH 2/3] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 82885b510..faf84d4b3 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -12,5 +12,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-java-sdk: 4.6.3 -current_generation: ae4f5b4b9ca18d966278c4113e89b85e607973cc + - commit_sha: 653c66ddba4f88ad24d1bab64c0d820b57ec9c0d + tree_hash: b714995659cff9c91bdf1eaa8990f7dadbdbe52d + timestamp: 2026-07-14T16:05:49.064Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.11.1 +current_generation: 653c66ddba4f88ad24d1bab64c0d820b57ec9c0d patches: [] From dc558b8dc928576faaf7a9b5ad27052a647ac0e6 Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Wed, 15 Jul 2026 11:19:19 +0530 Subject: [PATCH 3/3] Add maxRetries support to custom RequestOptions The Fern generator (4.11.1) emits per-request retry overrides calling requestOptions.getMaxRetries(). RequestOptions is fernignored for custom OAuth support, so it needs this method added by hand to compile. --- .../auth0/client/mgmt/core/RequestOptions.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java b/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java index f83ded99c..5a2e2d429 100644 --- a/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java +++ b/src/main/java/com/auth0/client/mgmt/core/RequestOptions.java @@ -19,6 +19,8 @@ public final class RequestOptions { private final TimeUnit timeoutTimeUnit; + private final Optional maxRetries; + private final Map headers; private final Map> headerSuppliers; @@ -43,6 +45,7 @@ private RequestOptions( String token, Optional timeout, TimeUnit timeoutTimeUnit, + Optional maxRetries, Map headers, Map> headerSuppliers, Map queryParameters, @@ -54,6 +57,7 @@ private RequestOptions( this.token = token; this.timeout = timeout; this.timeoutTimeUnit = timeoutTimeUnit; + this.maxRetries = maxRetries; this.headers = headers; this.headerSuppliers = headerSuppliers; this.queryParameters = queryParameters; @@ -72,6 +76,10 @@ public TimeUnit getTimeoutTimeUnit() { return timeoutTimeUnit; } + public Optional getMaxRetries() { + return maxRetries; + } + /** * Returns the client ID for per-request OAuth credentials, if set. */ @@ -158,6 +166,8 @@ public static class Builder { private TimeUnit timeoutTimeUnit = TimeUnit.SECONDS; + private Optional maxRetries = Optional.empty(); + private final Map headers = new HashMap<>(); private final Map> headerSuppliers = new HashMap<>(); @@ -238,6 +248,11 @@ public Builder timeout(Integer timeout, TimeUnit timeoutTimeUnit) { return this; } + public Builder maxRetries(Integer maxRetries) { + this.maxRetries = Optional.of(maxRetries); + return this; + } + public Builder addHeader(String key, String value) { this.headers.put(key, value); return this; @@ -263,6 +278,7 @@ public RequestOptions build() { token, timeout, timeoutTimeUnit, + maxRetries, headers, headerSuppliers, queryParameters,