From a7108a6c98635f2ebf6429a3e9b58e94f38219c0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 04:59:22 +0000 Subject: [PATCH] SDK regeneration --- reference.md | 6 +- .../com/auth0/client/mgmt/ActionsClient.java | 27 +- .../auth0/client/mgmt/AsyncActionsClient.java | 27 +- .../client/mgmt/AsyncBrandingClient.java | 7 + .../client/mgmt/AsyncClientGrantsClient.java | 32 +- .../auth0/client/mgmt/AsyncClientsClient.java | 511 +++--- .../mgmt/AsyncConnectionProfilesClient.java | 14 + .../client/mgmt/AsyncConnectionsClient.java | 139 +- .../client/mgmt/AsyncCustomDomainsClient.java | 85 +- .../mgmt/AsyncDeviceCredentialsClient.java | 21 +- .../mgmt/AsyncEmailTemplatesClient.java | 8 + .../client/mgmt/AsyncEventStreamsClient.java | 8 + .../auth0/client/mgmt/AsyncFlowsClient.java | 12 + .../auth0/client/mgmt/AsyncFormsClient.java | 12 + .../auth0/client/mgmt/AsyncGroupsClient.java | 7 + .../auth0/client/mgmt/AsyncHooksClient.java | 33 +- .../client/mgmt/AsyncLogStreamsClient.java | 331 ++-- .../auth0/client/mgmt/AsyncLogsClient.java | 147 +- .../mgmt/AsyncManagementApiBuilder.java | 12 + .../client/mgmt/AsyncNetworkAclsClient.java | 14 + .../client/mgmt/AsyncOrganizationsClient.java | 101 +- .../auth0/client/mgmt/AsyncPromptsClient.java | 17 +- .../client/mgmt/AsyncRawActionsClient.java | 99 +- .../client/mgmt/AsyncRawBrandingClient.java | 32 +- .../mgmt/AsyncRawClientGrantsClient.java | 87 +- .../client/mgmt/AsyncRawClientsClient.java | 572 ++++--- .../AsyncRawConnectionProfilesClient.java | 93 +- .../mgmt/AsyncRawConnectionsClient.java | 200 ++- .../mgmt/AsyncRawCustomDomainsClient.java | 163 +- .../mgmt/AsyncRawDeviceCredentialsClient.java | 51 +- .../mgmt/AsyncRawEmailTemplatesClient.java | 56 +- .../mgmt/AsyncRawEventStreamsClient.java | 75 +- .../client/mgmt/AsyncRawFlowsClient.java | 61 +- .../client/mgmt/AsyncRawFormsClient.java | 61 +- .../client/mgmt/AsyncRawGroupsClient.java | 24 +- .../client/mgmt/AsyncRawHooksClient.java | 81 +- .../auth0/client/mgmt/AsyncRawJobsClient.java | 12 +- .../client/mgmt/AsyncRawLogStreamsClient.java | 392 +++-- .../auth0/client/mgmt/AsyncRawLogsClient.java | 164 +- .../mgmt/AsyncRawNetworkAclsClient.java | 81 +- .../mgmt/AsyncRawOrganizationsClient.java | 168 +- .../client/mgmt/AsyncRawPromptsClient.java | 42 +- .../mgmt/AsyncRawRefreshTokensClient.java | 44 +- .../mgmt/AsyncRawResourceServersClient.java | 90 +- .../client/mgmt/AsyncRawRolesClient.java | 97 +- .../client/mgmt/AsyncRawRulesClient.java | 89 +- .../mgmt/AsyncRawRulesConfigsClient.java | 36 +- .../AsyncRawSelfServiceProfilesClient.java | 69 +- .../client/mgmt/AsyncRawSessionsClient.java | 56 +- .../client/mgmt/AsyncRawStatsClient.java | 24 +- .../AsyncRawSupplementalSignalsClient.java | 24 +- .../client/mgmt/AsyncRawTicketsClient.java | 33 +- .../AsyncRawTokenExchangeProfilesClient.java | 130 +- .../AsyncRawUserAttributeProfilesClient.java | 93 +- .../client/mgmt/AsyncRawUserBlocksClient.java | 61 +- .../client/mgmt/AsyncRawUserGrantsClient.java | 36 +- .../client/mgmt/AsyncRawUsersClient.java | 463 ++++-- .../client/mgmt/AsyncRefreshTokensClient.java | 7 + .../mgmt/AsyncResourceServersClient.java | 41 +- .../auth0/client/mgmt/AsyncRolesClient.java | 43 +- .../auth0/client/mgmt/AsyncRulesClient.java | 41 +- .../mgmt/AsyncSelfServiceProfilesClient.java | 14 + .../client/mgmt/AsyncSessionsClient.java | 7 + .../auth0/client/mgmt/AsyncStatsClient.java | 7 + .../auth0/client/mgmt/AsyncTicketsClient.java | 8 + .../AsyncTokenExchangeProfilesClient.java | 77 +- .../AsyncUserAttributeProfilesClient.java | 15 + .../client/mgmt/AsyncUserBlocksClient.java | 33 +- .../client/mgmt/AsyncUserGrantsClient.java | 13 +- .../auth0/client/mgmt/AsyncUsersClient.java | 385 +++-- .../com/auth0/client/mgmt/BrandingClient.java | 7 + .../auth0/client/mgmt/ClientGrantsClient.java | 32 +- .../com/auth0/client/mgmt/ClientsClient.java | 511 +++--- .../client/mgmt/ConnectionProfilesClient.java | 14 + .../auth0/client/mgmt/ConnectionsClient.java | 139 +- .../client/mgmt/CustomDomainsClient.java | 85 +- .../client/mgmt/DeviceCredentialsClient.java | 21 +- .../client/mgmt/EmailTemplatesClient.java | 8 + .../auth0/client/mgmt/EventStreamsClient.java | 8 + .../com/auth0/client/mgmt/FlowsClient.java | 12 + .../com/auth0/client/mgmt/FormsClient.java | 12 + .../com/auth0/client/mgmt/GroupsClient.java | 7 + .../com/auth0/client/mgmt/HooksClient.java | 33 +- .../auth0/client/mgmt/LogStreamsClient.java | 331 ++-- .../com/auth0/client/mgmt/LogsClient.java | 147 +- .../auth0/client/mgmt/NetworkAclsClient.java | 14 + .../client/mgmt/OrganizationsClient.java | 101 +- .../com/auth0/client/mgmt/PromptsClient.java | 17 +- .../auth0/client/mgmt/RawActionsClient.java | 97 +- .../auth0/client/mgmt/RawBrandingClient.java | 31 +- .../client/mgmt/RawClientGrantsClient.java | 87 +- .../auth0/client/mgmt/RawClientsClient.java | 569 ++++--- .../mgmt/RawConnectionProfilesClient.java | 92 +- .../client/mgmt/RawConnectionsClient.java | 197 ++- .../client/mgmt/RawCustomDomainsClient.java | 163 +- .../mgmt/RawDeviceCredentialsClient.java | 50 +- .../client/mgmt/RawEmailTemplatesClient.java | 56 +- .../client/mgmt/RawEventStreamsClient.java | 75 +- .../com/auth0/client/mgmt/RawFlowsClient.java | 58 +- .../com/auth0/client/mgmt/RawFormsClient.java | 58 +- .../auth0/client/mgmt/RawGroupsClient.java | 24 +- .../com/auth0/client/mgmt/RawHooksClient.java | 79 +- .../com/auth0/client/mgmt/RawJobsClient.java | 12 +- .../client/mgmt/RawLogStreamsClient.java | 391 +++-- .../com/auth0/client/mgmt/RawLogsClient.java | 164 +- .../client/mgmt/RawNetworkAclsClient.java | 80 +- .../client/mgmt/RawOrganizationsClient.java | 167 +- .../auth0/client/mgmt/RawPromptsClient.java | 41 +- .../client/mgmt/RawRefreshTokensClient.java | 44 +- .../client/mgmt/RawResourceServersClient.java | 88 +- .../com/auth0/client/mgmt/RawRolesClient.java | 96 +- .../com/auth0/client/mgmt/RawRulesClient.java | 87 +- .../client/mgmt/RawRulesConfigsClient.java | 36 +- .../mgmt/RawSelfServiceProfilesClient.java | 68 +- .../auth0/client/mgmt/RawSessionsClient.java | 55 +- .../com/auth0/client/mgmt/RawStatsClient.java | 24 +- .../mgmt/RawSupplementalSignalsClient.java | 24 +- .../auth0/client/mgmt/RawTicketsClient.java | 33 +- .../mgmt/RawTokenExchangeProfilesClient.java | 130 +- .../mgmt/RawUserAttributeProfilesClient.java | 92 +- .../client/mgmt/RawUserBlocksClient.java | 60 +- .../client/mgmt/RawUserGrantsClient.java | 35 +- .../com/auth0/client/mgmt/RawUsersClient.java | 460 ++++-- .../client/mgmt/RefreshTokensClient.java | 7 + .../client/mgmt/ResourceServersClient.java | 41 +- .../com/auth0/client/mgmt/RolesClient.java | 43 +- .../com/auth0/client/mgmt/RulesClient.java | 41 +- .../mgmt/SelfServiceProfilesClient.java | 14 + .../com/auth0/client/mgmt/SessionsClient.java | 7 + .../com/auth0/client/mgmt/StatsClient.java | 7 + .../com/auth0/client/mgmt/TicketsClient.java | 8 + .../mgmt/TokenExchangeProfilesClient.java | 76 +- .../mgmt/UserAttributeProfilesClient.java | 14 + .../auth0/client/mgmt/UserBlocksClient.java | 33 +- .../auth0/client/mgmt/UserGrantsClient.java | 13 +- .../com/auth0/client/mgmt/UsersClient.java | 385 +++-- .../mgmt/actions/AsyncModulesClient.java | 22 + .../actions/AsyncRawExecutionsClient.java | 12 +- .../mgmt/actions/AsyncRawModulesClient.java | 94 +- .../mgmt/actions/AsyncRawTriggersClient.java | 12 +- .../mgmt/actions/AsyncRawVersionsClient.java | 45 +- .../mgmt/actions/AsyncVersionsClient.java | 15 + .../client/mgmt/actions/ModulesClient.java | 21 + .../mgmt/actions/RawExecutionsClient.java | 12 +- .../client/mgmt/actions/RawModulesClient.java | 93 +- .../mgmt/actions/RawTriggersClient.java | 12 +- .../mgmt/actions/RawVersionsClient.java | 45 +- .../client/mgmt/actions/VersionsClient.java | 14 + .../modules/AsyncRawVersionsClient.java | 37 +- .../actions/modules/AsyncVersionsClient.java | 7 + .../actions/modules/RawVersionsClient.java | 37 +- .../mgmt/actions/modules/VersionsClient.java | 7 + ...ActionModuleVersionsRequestParameters.java | 10 + .../actions/triggers/AsyncBindingsClient.java | 15 + .../triggers/AsyncRawBindingsClient.java | 35 +- .../mgmt/actions/triggers/BindingsClient.java | 14 + .../actions/triggers/RawBindingsClient.java | 35 +- ...ctionTriggerBindingsRequestParameters.java | 10 + .../UpdateActionBindingsRequestContent.java | 10 + .../CreateActionModuleRequestContent.java | 16 + ...tActionModuleActionsRequestParameters.java | 10 + .../GetActionModulesRequestParameters.java | 10 + .../ListActionVersionsRequestParameters.java | 10 + ...RollbackActionModuleRequestParameters.java | 16 + .../UpdateActionModuleRequestContent.java | 10 + .../mgmt/anomaly/AsyncBlocksClient.java | 8 +- .../mgmt/anomaly/AsyncRawBlocksClient.java | 32 +- .../client/mgmt/anomaly/BlocksClient.java | 8 +- .../client/mgmt/anomaly/RawBlocksClient.java | 32 +- .../AsyncBotDetectionClient.java | 7 + .../AsyncBreachedPasswordDetectionClient.java | 8 + .../AsyncBruteForceProtectionClient.java | 7 + .../attackprotection/AsyncCaptchaClient.java | 7 + .../AsyncRawBotDetectionClient.java | 32 +- ...yncRawBreachedPasswordDetectionClient.java | 33 +- .../AsyncRawBruteForceProtectionClient.java | 32 +- .../AsyncRawCaptchaClient.java | 32 +- .../AsyncRawSuspiciousIpThrottlingClient.java | 33 +- .../AsyncSuspiciousIpThrottlingClient.java | 8 + .../attackprotection/BotDetectionClient.java | 7 + .../BreachedPasswordDetectionClient.java | 7 + .../BruteForceProtectionClient.java | 7 + .../mgmt/attackprotection/CaptchaClient.java | 7 + .../RawBotDetectionClient.java | 31 +- .../RawBreachedPasswordDetectionClient.java | 33 +- .../RawBruteForceProtectionClient.java | 31 +- .../attackprotection/RawCaptchaClient.java | 32 +- .../RawSuspiciousIpThrottlingClient.java | 33 +- .../SuspiciousIpThrottlingClient.java | 7 + ...AttackProtectionCaptchaRequestContent.java | 10 + ...ateBotDetectionSettingsRequestContent.java | 10 + ...sswordDetectionSettingsRequestContent.java | 18 +- ...pdateBruteForceSettingsRequestContent.java | 14 +- ...ousIpThrottlingSettingsRequestContent.java | 14 +- .../branding/AsyncRawTemplatesClient.java | 68 +- .../mgmt/branding/AsyncRawThemesClient.java | 60 +- .../mgmt/branding/AsyncTemplatesClient.java | 32 +- .../mgmt/branding/RawTemplatesClient.java | 68 +- .../client/mgmt/branding/RawThemesClient.java | 60 +- .../client/mgmt/branding/TemplatesClient.java | 32 +- .../branding/phone/AsyncProvidersClient.java | 46 +- .../phone/AsyncRawProvidersClient.java | 112 +- .../phone/AsyncRawTemplatesClient.java | 92 +- .../branding/phone/AsyncTemplatesClient.java | 12 + .../mgmt/branding/phone/ProvidersClient.java | 45 +- .../branding/phone/RawProvidersClient.java | 111 +- .../branding/phone/RawTemplatesClient.java | 90 +- .../mgmt/branding/phone/TemplatesClient.java | 12 + ...teBrandingPhoneProviderRequestContent.java | 16 + ...tePhoneProviderSendTestRequestContent.java | 16 + .../CreatePhoneTemplateRequestContent.java | 10 + ...emplateTestNotificationRequestContent.java | 16 + ...andingPhoneProvidersRequestParameters.java | 10 + .../ListPhoneTemplatesRequestParameters.java | 10 + ...teBrandingPhoneProviderRequestContent.java | 10 + .../UpdatePhoneTemplateRequestContent.java | 10 + .../CreateBrandingThemeRequestContent.java | 16 + .../UpdateBrandingThemeRequestContent.java | 16 + .../AsyncOrganizationsClient.java | 4 + .../AsyncRawOrganizationsClient.java | 10 + .../clientgrants/OrganizationsClient.java | 4 + .../clientgrants/RawOrganizationsClient.java | 9 + ...ntGrantOrganizationsRequestParameters.java | 10 + .../mgmt/clients/AsyncConnectionsClient.java | 69 +- .../mgmt/clients/AsyncCredentialsClient.java | 74 +- .../clients/AsyncRawConnectionsClient.java | 75 +- .../clients/AsyncRawCredentialsClient.java | 138 +- .../mgmt/clients/ConnectionsClient.java | 69 +- .../mgmt/clients/CredentialsClient.java | 74 +- .../mgmt/clients/RawConnectionsClient.java | 75 +- .../mgmt/clients/RawCredentialsClient.java | 138 +- .../clients/types/ConnectionsGetRequest.java | 14 +- .../PatchClientCredentialRequestContent.java | 10 + .../PostClientCredentialRequestContent.java | 16 + .../mgmt/connections/AsyncClientsClient.java | 21 +- .../AsyncDirectoryProvisioningClient.java | 23 + .../mgmt/connections/AsyncKeysClient.java | 7 + .../connections/AsyncRawClientsClient.java | 38 +- .../AsyncRawDirectoryProvisioningClient.java | 89 +- .../mgmt/connections/AsyncRawKeysClient.java | 32 +- .../AsyncRawScimConfigurationClient.java | 84 +- .../mgmt/connections/AsyncRawUsersClient.java | 5 + .../AsyncScimConfigurationClient.java | 23 +- .../mgmt/connections/ClientsClient.java | 20 +- .../DirectoryProvisioningClient.java | 21 + .../client/mgmt/connections/KeysClient.java | 7 + .../mgmt/connections/RawClientsClient.java | 38 +- .../RawDirectoryProvisioningClient.java | 88 +- .../mgmt/connections/RawKeysClient.java | 32 +- .../RawScimConfigurationClient.java | 84 +- .../mgmt/connections/RawUsersClient.java | 5 + .../connections/ScimConfigurationClient.java | 23 +- .../AsyncRawSynchronizationsClient.java | 12 +- .../RawSynchronizationsClient.java | 12 +- .../AsyncRawTokensClient.java | 52 +- .../scimconfiguration/AsyncTokensClient.java | 15 +- .../scimconfiguration/RawTokensClient.java | 51 +- .../scimconfiguration/TokensClient.java | 15 +- .../types/CreateScimTokenRequestContent.java | 10 + ...ConnectionUsersByEmailQueryParameters.java | 16 + ...ectionEnabledClientsRequestParameters.java | 10 + ...rectoryProvisioningsRequestParameters.java | 10 + ...UpdateScimConfigurationRequestContent.java | 16 + .../com/auth0/client/mgmt/core/SseEvent.java | 114 ++ .../client/mgmt/core/SseEventParser.java | 228 +++ .../com/auth0/client/mgmt/core/Stream.java | 221 ++- .../mgmt/emails/AsyncProviderClient.java | 437 ++--- .../mgmt/emails/AsyncRawProviderClient.java | 480 +++--- .../client/mgmt/emails/ProviderClient.java | 437 ++--- .../client/mgmt/emails/RawProviderClient.java | 478 +++--- .../CreateEmailProviderRequestContent.java | 16 + .../GetEmailProviderRequestParameters.java | 10 + .../UpdateEmailProviderRequestContent.java | 10 + .../eventstreams/AsyncDeliveriesClient.java | 4 + .../AsyncRawDeliveriesClient.java | 22 +- .../AsyncRawRedeliveriesClient.java | 29 +- .../eventstreams/AsyncRedeliveriesClient.java | 5 + .../mgmt/eventstreams/DeliveriesClient.java | 4 + .../eventstreams/RawDeliveriesClient.java | 21 +- .../eventstreams/RawRedeliveriesClient.java | 29 +- .../mgmt/eventstreams/RedeliveriesClient.java | 4 + ...teEventStreamRedeliveryRequestContent.java | 10 + ...ventStreamDeliveriesRequestParameters.java | 10 + .../mgmt/flows/AsyncExecutionsClient.java | 10 + .../mgmt/flows/AsyncRawExecutionsClient.java | 33 +- .../client/mgmt/flows/ExecutionsClient.java | 8 + .../mgmt/flows/RawExecutionsClient.java | 33 +- .../GetFlowExecutionRequestParameters.java | 10 + .../ListFlowExecutionsRequestParameters.java | 10 + .../flows/vault/AsyncConnectionsClient.java | 9 + .../vault/AsyncRawConnectionsClient.java | 63 +- .../mgmt/flows/vault/ConnectionsClient.java | 8 + .../flows/vault/RawConnectionsClient.java | 63 +- ...lowsVaultConnectionsRequestParameters.java | 10 + ...ateFlowsVaultConnectionRequestContent.java | 10 + .../mgmt/groups/AsyncMembersClient.java | 7 + .../mgmt/groups/AsyncRawMembersClient.java | 13 + .../client/mgmt/groups/MembersClient.java | 7 + .../client/mgmt/groups/RawMembersClient.java | 12 + .../GetGroupMembersRequestParameters.java | 10 + .../mgmt/guardian/AsyncEnrollmentsClient.java | 12 +- .../mgmt/guardian/AsyncFactorsClient.java | 4 +- .../mgmt/guardian/AsyncPoliciesClient.java | 48 +- .../guardian/AsyncRawEnrollmentsClient.java | 48 +- .../mgmt/guardian/AsyncRawFactorsClient.java | 28 +- .../mgmt/guardian/AsyncRawPoliciesClient.java | 72 +- .../mgmt/guardian/EnrollmentsClient.java | 12 +- .../client/mgmt/guardian/FactorsClient.java | 4 +- .../client/mgmt/guardian/PoliciesClient.java | 48 +- .../mgmt/guardian/RawEnrollmentsClient.java | 48 +- .../mgmt/guardian/RawFactorsClient.java | 28 +- .../mgmt/guardian/RawPoliciesClient.java | 72 +- .../guardian/factors/AsyncPhoneClient.java | 26 +- .../factors/AsyncPushNotificationClient.java | 84 +- .../guardian/factors/AsyncRawPhoneClient.java | 123 +- .../AsyncRawPushNotificationClient.java | 257 ++- .../guardian/factors/AsyncRawSmsClient.java | 135 +- .../mgmt/guardian/factors/AsyncSmsClient.java | 62 +- .../mgmt/guardian/factors/PhoneClient.java | 25 +- .../factors/PushNotificationClient.java | 83 +- .../mgmt/guardian/factors/RawPhoneClient.java | 123 +- .../factors/RawPushNotificationClient.java | 252 ++- .../mgmt/guardian/factors/RawSmsClient.java | 135 +- .../mgmt/guardian/factors/SmsClient.java | 61 +- .../factors/duo/AsyncRawSettingsClient.java | 49 +- .../factors/duo/AsyncSettingsClient.java | 11 + .../factors/duo/RawSettingsClient.java | 48 +- .../guardian/factors/duo/SettingsClient.java | 11 + ...ardianFactorDuoSettingsRequestContent.java | 10 + ...ardianFactorDuoSettingsRequestContent.java | 10 + ...FactorPhoneMessageTypesRequestContent.java | 10 + ...ianFactorPhoneTemplatesRequestContent.java | 16 + ...rdianFactorSmsTemplatesRequestContent.java | 16 + ...ianFactorsProviderPhoneRequestContent.java | 16 + ...torsProviderPhoneTwilioRequestContent.java | 10 + ...derPushNotificationApnsRequestContent.java | 10 + ...iderPushNotificationFcmRequestContent.java | 10 + ...erPushNotificationFcmv1RequestContent.java | 10 + ...roviderPushNotificationRequestContent.java | 16 + ...iderPushNotificationSnsRequestContent.java | 10 + ...rdianFactorsProviderSmsRequestContent.java | 16 + ...actorsProviderSmsTwilioRequestContent.java | 10 + ...derPushNotificationApnsRequestContent.java | 10 + ...iderPushNotificationFcmRequestContent.java | 10 + ...erPushNotificationFcmv1RequestContent.java | 10 + ...iderPushNotificationSnsRequestContent.java | 10 + ...uardianEnrollmentTicketRequestContent.java | 24 +- .../SetGuardianFactorRequestContent.java | 16 + .../mgmt/hooks/AsyncRawSecretsClient.java | 48 +- .../client/mgmt/hooks/RawSecretsClient.java | 48 +- .../mgmt/jobs/AsyncRawErrorsClient.java | 12 +- .../mgmt/jobs/AsyncRawUsersExportsClient.java | 20 +- .../mgmt/jobs/AsyncRawUsersImportsClient.java | 54 +- .../jobs/AsyncRawVerificationEmailClient.java | 16 +- .../mgmt/jobs/AsyncUsersExportsClient.java | 7 + .../mgmt/jobs/AsyncUsersImportsClient.java | 4 +- .../jobs/AsyncVerificationEmailClient.java | 4 +- .../client/mgmt/jobs/RawErrorsClient.java | 12 +- .../mgmt/jobs/RawUsersExportsClient.java | 19 +- .../mgmt/jobs/RawUsersImportsClient.java | 54 +- .../mgmt/jobs/RawVerificationEmailClient.java | 16 +- .../client/mgmt/jobs/UsersExportsClient.java | 7 + .../client/mgmt/jobs/UsersImportsClient.java | 4 +- .../mgmt/jobs/VerificationEmailClient.java | 4 +- .../CreateExportUsersRequestContent.java | 10 + .../CreateImportUsersRequestContent.java | 16 + ...CreateVerificationEmailRequestContent.java | 16 + .../mgmt/keys/AsyncEncryptionClient.java | 7 + .../keys/AsyncRawCustomSigningClient.java | 36 +- .../mgmt/keys/AsyncRawEncryptionClient.java | 85 +- .../mgmt/keys/AsyncRawSigningClient.java | 48 +- .../client/mgmt/keys/EncryptionClient.java | 7 + .../mgmt/keys/RawCustomSigningClient.java | 36 +- .../client/mgmt/keys/RawEncryptionClient.java | 84 +- .../client/mgmt/keys/RawSigningClient.java | 48 +- .../CreateEncryptionKeyRequestContent.java | 16 + .../ImportEncryptionKeyRequestContent.java | 16 + .../ListEncryptionKeysRequestParameters.java | 10 + .../SetCustomSigningKeysRequestContent.java | 10 + .../AsyncClientGrantsClient.java | 5 + .../AsyncDiscoveryDomainsClient.java | 22 +- .../AsyncEnabledConnectionsClient.java | 24 +- .../organizations/AsyncInvitationsClient.java | 23 +- .../organizations/AsyncMembersClient.java | 92 +- .../AsyncRawClientGrantsClient.java | 34 +- .../AsyncRawDiscoveryDomainsClient.java | 92 +- .../AsyncRawEnabledConnectionsClient.java | 81 +- .../AsyncRawInvitationsClient.java | 61 +- .../organizations/AsyncRawMembersClient.java | 122 +- .../organizations/ClientGrantsClient.java | 4 + .../organizations/DiscoveryDomainsClient.java | 21 +- .../EnabledConnectionsClient.java | 23 +- .../mgmt/organizations/InvitationsClient.java | 21 +- .../mgmt/organizations/MembersClient.java | 92 +- .../organizations/RawClientGrantsClient.java | 34 +- .../RawDiscoveryDomainsClient.java | 92 +- .../RawEnabledConnectionsClient.java | 81 +- .../organizations/RawInvitationsClient.java | 61 +- .../mgmt/organizations/RawMembersClient.java | 122 +- .../members/AsyncRawRolesClient.java | 50 +- .../members/AsyncRolesClient.java | 16 +- .../organizations/members/RawRolesClient.java | 50 +- .../organizations/members/RolesClient.java | 16 +- ...OrganizationMemberRolesRequestContent.java | 10 + ...OrganizationMemberRolesRequestContent.java | 10 + ...anizationMemberRolesRequestParameters.java | 10 + ...dOrganizationConnectionRequestContent.java | 16 + ...OrganizationClientGrantRequestContent.java | 16 + ...nizationDiscoveryDomainRequestContent.java | 16 + ...eOrganizationInvitationRequestContent.java | 16 + ...reateOrganizationMemberRequestContent.java | 10 + ...leteOrganizationMembersRequestContent.java | 10 + ...ganizationInvitationRequestParameters.java | 10 + ...nizationClientGrantsRequestParameters.java | 14 +- ...anizationConnectionsRequestParameters.java | 10 + ...tionDiscoveryDomainsRequestParameters.java | 10 + ...anizationInvitationsRequestParameters.java | 10 + ...tOrganizationMembersRequestParameters.java | 10 + ...eOrganizationConnectionRequestContent.java | 10 + ...nizationDiscoveryDomainRequestContent.java | 10 + .../prompts/AsyncRawCustomTextClient.java | 24 +- .../mgmt/prompts/AsyncRawPartialsClient.java | 24 +- .../mgmt/prompts/AsyncRawRenderingClient.java | 67 +- .../mgmt/prompts/AsyncRenderingClient.java | 25 +- .../mgmt/prompts/RawCustomTextClient.java | 24 +- .../mgmt/prompts/RawPartialsClient.java | 24 +- .../mgmt/prompts/RawRenderingClient.java | 67 +- .../client/mgmt/prompts/RenderingClient.java | 25 +- .../types/BulkUpdateAculRequestContent.java | 10 + .../types/ListAculsRequestParameters.java | 10 + .../types/UpdateAculRequestContent.java | 10 + .../AsyncRawSettingsClient.java | 24 +- .../riskassessments/RawSettingsClient.java | 24 +- .../settings/AsyncRawNewDeviceClient.java | 24 +- .../settings/RawNewDeviceClient.java | 24 +- ...smentsSettingsNewDeviceRequestContent.java | 16 + ...RiskAssessmentsSettingsRequestContent.java | 16 + .../mgmt/roles/AsyncPermissionsClient.java | 16 +- .../mgmt/roles/AsyncRawPermissionsClient.java | 45 +- .../mgmt/roles/AsyncRawUsersClient.java | 112 +- .../client/mgmt/roles/AsyncUsersClient.java | 94 +- .../client/mgmt/roles/PermissionsClient.java | 15 +- .../mgmt/roles/RawPermissionsClient.java | 45 +- .../client/mgmt/roles/RawUsersClient.java | 111 +- .../auth0/client/mgmt/roles/UsersClient.java | 94 +- .../AddRolePermissionsRequestContent.java | 10 + .../types/AssignRoleUsersRequestContent.java | 10 + .../DeleteRolePermissionsRequestContent.java | 10 + .../ListRolePermissionsRequestParameters.java | 10 + .../types/ListRoleUsersRequestParameters.java | 10 + .../AsyncRawCustomTextClient.java | 24 +- .../AsyncRawSsoTicketClient.java | 33 +- .../AsyncSsoTicketClient.java | 8 + .../RawCustomTextClient.java | 24 +- .../RawSsoTicketClient.java | 33 +- .../selfserviceprofiles/SsoTicketClient.java | 7 + ...ServiceProfileSsoTicketRequestContent.java | 10 + .../mgmt/tenants/AsyncRawSettingsClient.java | 33 +- .../mgmt/tenants/AsyncSettingsClient.java | 14 + .../mgmt/tenants/RawSettingsClient.java | 31 +- .../client/mgmt/tenants/SettingsClient.java | 14 + .../GetTenantSettingsRequestParameters.java | 10 + .../UpdateTenantSettingsRequestContent.java | 10 + .../com/auth0/client/mgmt/types/Action.java | 10 + .../auth0/client/mgmt/types/ActionBase.java | 10 + .../client/mgmt/types/ActionBinding.java | 10 + .../client/mgmt/types/ActionBindingRef.java | 10 + .../mgmt/types/ActionBindingWithRef.java | 16 + .../mgmt/types/ActionDeployedVersion.java | 10 + .../auth0/client/mgmt/types/ActionError.java | 10 + .../mgmt/types/ActionExecutionResult.java | 10 + .../client/mgmt/types/ActionModuleAction.java | 10 + .../mgmt/types/ActionModuleDependency.java | 10 + .../types/ActionModuleDependencyRequest.java | 16 + .../mgmt/types/ActionModuleListItem.java | 10 + .../mgmt/types/ActionModuleReference.java | 10 + .../client/mgmt/types/ActionModuleSecret.java | 10 + .../mgmt/types/ActionModuleSecretRequest.java | 16 + .../mgmt/types/ActionModuleVersion.java | 10 + .../types/ActionModuleVersionReference.java | 10 + .../mgmt/types/ActionSecretRequest.java | 10 + .../mgmt/types/ActionSecretResponse.java | 10 + .../client/mgmt/types/ActionTrigger.java | 16 + .../types/ActionTriggerCompatibleTrigger.java | 16 + .../client/mgmt/types/ActionVersion.java | 10 + .../mgmt/types/ActionVersionDependency.java | 10 + .../mgmt/types/AculClientFilterById.java | 16 + .../types/AculClientFilterByMetadata.java | 10 + .../client/mgmt/types/AculConfigsItem.java | 16 + .../mgmt/types/AculDomainFilterById.java | 16 + .../types/AculDomainFilterByMetadata.java | 10 + .../auth0/client/mgmt/types/AculFilters.java | 10 + .../auth0/client/mgmt/types/AculHeadTag.java | 10 + .../types/AculOrganizationFilterById.java | 16 + .../AculOrganizationFilterByMetadata.java | 10 + ...OrganizationConnectionResponseContent.java | 10 + ...rganizationClientGrantResponseContent.java | 10 + ...rotectionCaptchaArkoseResponseContent.java | 10 + ...ProtectionCaptchaAuthChallengeRequest.java | 16 + ...onCaptchaAuthChallengeResponseContent.java | 10 + ...CaptchaFriendlyCaptchaResponseContent.java | 10 + ...tectionCaptchaHcaptchaResponseContent.java | 10 + ...chaRecaptchaEnterpriseResponseContent.java | 10 + ...tionCaptchaRecaptchaV2ResponseContent.java | 10 + .../AttackProtectionUpdateCaptchaArkose.java | 16 + ...rotectionUpdateCaptchaFriendlyCaptcha.java | 16 + ...AttackProtectionUpdateCaptchaHcaptcha.java | 16 + ...ctionUpdateCaptchaRecaptchaEnterprise.java | 16 + ...ackProtectionUpdateCaptchaRecaptchaV2.java | 16 + .../client/mgmt/types/BrandingColors.java | 10 + .../auth0/client/mgmt/types/BrandingFont.java | 10 + .../mgmt/types/BrandingThemeBorders.java | 16 + .../mgmt/types/BrandingThemeColors.java | 16 + .../mgmt/types/BrandingThemeFontBodyText.java | 16 + .../types/BrandingThemeFontButtonsText.java | 16 + .../types/BrandingThemeFontInputLabels.java | 16 + .../mgmt/types/BrandingThemeFontLinks.java | 16 + .../mgmt/types/BrandingThemeFontSubtitle.java | 16 + .../mgmt/types/BrandingThemeFontTitle.java | 16 + .../client/mgmt/types/BrandingThemeFonts.java | 16 + .../types/BrandingThemePageBackground.java | 16 + .../mgmt/types/BrandingThemeWidget.java | 16 + ...sswordDetectionPreChangePasswordStage.java | 14 +- ...wordDetectionPreUserRegistrationStage.java | 14 +- .../types/BreachedPasswordDetectionStage.java | 10 + .../types/BulkUpdateAculResponseContent.java | 10 + .../types/CertificateSubjectDnCredential.java | 16 + .../types/ChangePasswordTicketIdentity.java | 16 + .../ChangePasswordTicketRequestContent.java | 14 +- .../ChangePasswordTicketResponseContent.java | 16 + .../com/auth0/client/mgmt/types/Client.java | 18 +- .../client/mgmt/types/ClientAddonAws.java | 10 + .../mgmt/types/ClientAddonAzureBlob.java | 10 + .../client/mgmt/types/ClientAddonAzureSb.java | 10 + .../mgmt/types/ClientAddonEchoSign.java | 10 + .../client/mgmt/types/ClientAddonEgnyte.java | 10 + .../mgmt/types/ClientAddonFirebase.java | 10 + .../client/mgmt/types/ClientAddonLayer.java | 16 + .../client/mgmt/types/ClientAddonMscrm.java | 16 + .../mgmt/types/ClientAddonNewRelic.java | 10 + .../client/mgmt/types/ClientAddonOag.java | 10 + .../mgmt/types/ClientAddonOffice365.java | 10 + .../client/mgmt/types/ClientAddonRms.java | 16 + .../mgmt/types/ClientAddonSalesforce.java | 10 + .../mgmt/types/ClientAddonSalesforceApi.java | 10 + .../ClientAddonSalesforceSandboxApi.java | 10 + .../client/mgmt/types/ClientAddonSaml.java | 10 + .../client/mgmt/types/ClientAddonSapapi.java | 10 + .../client/mgmt/types/ClientAddonSentry.java | 10 + .../mgmt/types/ClientAddonSharePoint.java | 10 + .../client/mgmt/types/ClientAddonSlack.java | 16 + .../mgmt/types/ClientAddonSpringCm.java | 10 + .../mgmt/types/ClientAddonSsoIntegration.java | 10 + .../client/mgmt/types/ClientAddonWams.java | 10 + .../client/mgmt/types/ClientAddonZendesk.java | 10 + .../client/mgmt/types/ClientAddonZoom.java | 10 + .../auth0/client/mgmt/types/ClientAddons.java | 10 + .../types/ClientAuthenticationMethod.java | 10 + ...ientAuthenticationMethodPrivateKeyJwt.java | 10 + ...ticationMethodSelfSignedTlsClientAuth.java | 10 + ...ientAuthenticationMethodTlsClientAuth.java | 10 + .../ClientCreateAuthenticationMethod.java | 10 + ...eateAuthenticationMethodPrivateKeyJwt.java | 10 + ...eateAuthenticationMethodTlsClientAuth.java | 10 + .../client/mgmt/types/ClientCredential.java | 10 + .../mgmt/types/ClientDefaultOrganization.java | 16 + .../mgmt/types/ClientEncryptionKey.java | 10 + .../types/ClientGrantResponseContent.java | 10 + .../mgmt/types/ClientJwtConfiguration.java | 10 + .../auth0/client/mgmt/types/ClientMobile.java | 10 + .../mgmt/types/ClientMobileAndroid.java | 10 + .../client/mgmt/types/ClientMobileiOs.java | 10 + ...ClientOidcBackchannelLogoutInitiators.java | 10 + ...tOidcBackchannelLogoutSessionMetadata.java | 10 + .../ClientOidcBackchannelLogoutSettings.java | 10 + .../ClientRefreshTokenConfiguration.java | 16 + .../mgmt/types/ClientRefreshTokenPolicy.java | 16 + .../ClientSessionTransferConfiguration.java | 10 + ...ntSignedRequestObjectWithCredentialId.java | 10 + ...lientSignedRequestObjectWithPublicKey.java | 10 + .../client/mgmt/types/ClientSigningKey.java | 10 + .../ClientTokenExchangeConfiguration.java | 10 + ...lientTokenExchangeConfigurationOrNull.java | 10 + .../types/ClientTokenExchangeTypeEnum.java | 11 + .../client/mgmt/types/ConnectedAccount.java | 16 + .../types/ConnectionAttributeIdentifier.java | 10 + .../types/ConnectionAttributeMapOidc.java | 10 + .../types/ConnectionAttributeMapOkta.java | 10 + .../mgmt/types/ConnectionAttributes.java | 10 + .../ConnectionAuthenticationMethods.java | 10 + .../ConnectionAuthenticationPurpose.java | 16 + .../client/mgmt/types/ConnectionCommon.java | 10 + .../ConnectionConnectedAccountsPurpose.java | 16 + ...ConnectionConnectedAccountsPurposeXaa.java | 16 + .../types/ConnectionConnectionSettings.java | 10 + .../mgmt/types/ConnectionCustomScripts.java | 10 + .../ConnectionDecryptionKeySamlCert.java | 10 + .../types/ConnectionDpopSigningAlgEnum.java | 85 + .../mgmt/types/ConnectionEmailEmail.java | 10 + ...onnectionEmailOtpAuthenticationMethod.java | 10 + .../mgmt/types/ConnectionEnabledClient.java | 16 + ...ctionFederatedConnectionsAccessTokens.java | 10 + .../client/mgmt/types/ConnectionForList.java | 10 + .../mgmt/types/ConnectionForOrganization.java | 16 + .../ConnectionGatewayAuthentication.java | 16 + .../ConnectionGatewayAuthenticationSms.java | 16 + .../client/mgmt/types/ConnectionKey.java | 16 + .../client/mgmt/types/ConnectionMfa.java | 10 + .../mgmt/types/ConnectionOptionsAd.java | 10 + .../mgmt/types/ConnectionOptionsAdfs.java | 10 + .../mgmt/types/ConnectionOptionsAmazon.java | 10 + .../mgmt/types/ConnectionOptionsAol.java | 10 + .../mgmt/types/ConnectionOptionsApple.java | 10 + .../mgmt/types/ConnectionOptionsAuth0.java | 10 + .../types/ConnectionOptionsAuth0Oidc.java | 10 + .../mgmt/types/ConnectionOptionsAzureAd.java | 10 + .../mgmt/types/ConnectionOptionsBaidu.java | 10 + .../types/ConnectionOptionsBitbucket.java | 10 + .../mgmt/types/ConnectionOptionsBitly.java | 10 + .../mgmt/types/ConnectionOptionsBox.java | 10 + .../mgmt/types/ConnectionOptionsCommon.java | 10 + .../types/ConnectionOptionsCommonOidc.java | 115 +- .../types/ConnectionOptionsCommonSaml.java | 10 + .../mgmt/types/ConnectionOptionsDaccount.java | 10 + .../mgmt/types/ConnectionOptionsDropbox.java | 10 + .../mgmt/types/ConnectionOptionsDwolla.java | 10 + .../mgmt/types/ConnectionOptionsEmail.java | 16 + .../mgmt/types/ConnectionOptionsEvernote.java | 10 + .../mgmt/types/ConnectionOptionsExact.java | 10 + .../mgmt/types/ConnectionOptionsFacebook.java | 10 + .../mgmt/types/ConnectionOptionsFitbit.java | 10 + .../mgmt/types/ConnectionOptionsFlickr.java | 10 + .../mgmt/types/ConnectionOptionsGitHub.java | 10 + .../types/ConnectionOptionsGoogleApps.java | 16 + .../types/ConnectionOptionsGoogleOAuth2.java | 10 + .../ConnectionOptionsIdpinitiatedSaml.java | 10 + .../types/ConnectionOptionsInstagram.java | 10 + .../mgmt/types/ConnectionOptionsLine.java | 10 + .../mgmt/types/ConnectionOptionsLinkedin.java | 10 + .../mgmt/types/ConnectionOptionsMiicard.java | 10 + .../mgmt/types/ConnectionOptionsOAuth1.java | 256 ++- .../types/ConnectionOptionsOAuth1Common.java | 10 + .../mgmt/types/ConnectionOptionsOAuth2.java | 10 + .../types/ConnectionOptionsOAuth2Common.java | 10 + .../types/ConnectionOptionsOffice365.java | 10 + .../mgmt/types/ConnectionOptionsOidc.java | 115 +- .../types/ConnectionOptionsOidcMetadata.java | 48 + .../mgmt/types/ConnectionOptionsOkta.java | 115 +- .../mgmt/types/ConnectionOptionsPaypal.java | 10 + .../types/ConnectionOptionsPingFederate.java | 16 + .../ConnectionOptionsPlanningCenter.java | 10 + .../mgmt/types/ConnectionOptionsRenren.java | 10 + .../types/ConnectionOptionsSalesforce.java | 10 + .../ConnectionOptionsSalesforceCommunity.java | 10 + .../mgmt/types/ConnectionOptionsSaml.java | 10 + .../types/ConnectionOptionsSharepoint.java | 10 + .../mgmt/types/ConnectionOptionsShop.java | 10 + .../mgmt/types/ConnectionOptionsShopify.java | 10 + .../mgmt/types/ConnectionOptionsSms.java | 10 + .../types/ConnectionOptionsSoundcloud.java | 10 + .../ConnectionOptionsThirtySevenSignals.java | 10 + .../mgmt/types/ConnectionOptionsTwitter.java | 10 + .../mgmt/types/ConnectionOptionsUntappd.java | 10 + .../types/ConnectionOptionsVkontakte.java | 10 + .../mgmt/types/ConnectionOptionsWeibo.java | 10 + .../types/ConnectionOptionsWindowsLive.java | 10 + .../types/ConnectionOptionsWordpress.java | 10 + .../mgmt/types/ConnectionOptionsYahoo.java | 10 + .../mgmt/types/ConnectionOptionsYammer.java | 10 + .../mgmt/types/ConnectionOptionsYandex.java | 10 + ...ConnectionPasskeyAuthenticationMethod.java | 10 + .../mgmt/types/ConnectionPasskeyOptions.java | 10 + ...onnectionPasswordAuthenticationMethod.java | 10 + .../ConnectionPasswordComplexityOptions.java | 10 + .../ConnectionPasswordDictionaryOptions.java | 16 + .../ConnectionPasswordHistoryOptions.java | 16 + ...nnectionPasswordNoPersonalInfoOptions.java | 16 + ...onnectionPhoneOtpAuthenticationMethod.java | 10 + .../client/mgmt/types/ConnectionProfile.java | 10 + .../mgmt/types/ConnectionProfileConfig.java | 10 + .../types/ConnectionProfileOrganization.java | 10 + .../ConnectionProfileStrategyOverride.java | 10 + .../ConnectionProfileStrategyOverrides.java | 10 + ...fileStrategyOverridesConnectionConfig.java | 10 + .../mgmt/types/ConnectionProfileTemplate.java | 10 + .../types/ConnectionProfileTemplateItem.java | 10 + .../types/ConnectionPropertiesOptions.java | 10 + .../client/mgmt/types/ConnectionPurposes.java | 10 + .../mgmt/types/ConnectionResponseCommon.java | 10 + .../types/ConnectionResponseContentAd.java | 16 + .../types/ConnectionResponseContentAdfs.java | 16 + .../ConnectionResponseContentAmazon.java | 16 + .../types/ConnectionResponseContentAol.java | 16 + .../types/ConnectionResponseContentApple.java | 16 + .../types/ConnectionResponseContentAuth0.java | 16 + .../ConnectionResponseContentAuth0Oidc.java | 16 + .../ConnectionResponseContentAzureAd.java | 16 + .../types/ConnectionResponseContentBaidu.java | 16 + .../ConnectionResponseContentBitbucket.java | 16 + .../types/ConnectionResponseContentBitly.java | 16 + .../types/ConnectionResponseContentBox.java | 16 + .../ConnectionResponseContentCustom.java | 16 + .../ConnectionResponseContentDaccount.java | 16 + .../ConnectionResponseContentDropbox.java | 16 + .../ConnectionResponseContentDwolla.java | 16 + .../types/ConnectionResponseContentEmail.java | 16 + .../ConnectionResponseContentEvernote.java | 16 + ...nectionResponseContentEvernoteSandbox.java | 16 + .../types/ConnectionResponseContentExact.java | 16 + .../ConnectionResponseContentFacebook.java | 16 + .../ConnectionResponseContentFitbit.java | 16 + .../ConnectionResponseContentFlickr.java | 16 + .../ConnectionResponseContentGitHub.java | 16 + .../ConnectionResponseContentGoogleApps.java | 16 + ...ConnectionResponseContentGoogleOAuth2.java | 16 + .../ConnectionResponseContentInstagram.java | 16 + .../types/ConnectionResponseContentIp.java | 16 + .../types/ConnectionResponseContentLine.java | 16 + .../ConnectionResponseContentLinkedin.java | 16 + .../ConnectionResponseContentMiicard.java | 16 + .../ConnectionResponseContentOAuth1.java | 16 + .../ConnectionResponseContentOAuth2.java | 16 + .../ConnectionResponseContentOffice365.java | 16 + .../types/ConnectionResponseContentOidc.java | 16 + .../types/ConnectionResponseContentOkta.java | 16 + .../ConnectionResponseContentPaypal.java | 16 + ...onnectionResponseContentPaypalSandbox.java | 16 + ...ConnectionResponseContentPingFederate.java | 16 + ...nnectionResponseContentPlanningCenter.java | 16 + .../ConnectionResponseContentRenren.java | 16 + .../ConnectionResponseContentSalesforce.java | 16 + ...ionResponseContentSalesforceCommunity.java | 16 + ...ctionResponseContentSalesforceSandbox.java | 16 + .../types/ConnectionResponseContentSaml.java | 16 + .../ConnectionResponseContentSharepoint.java | 16 + .../types/ConnectionResponseContentShop.java | 16 + .../ConnectionResponseContentShopify.java | 16 + .../types/ConnectionResponseContentSms.java | 16 + .../ConnectionResponseContentSoundcloud.java | 16 + ...tionResponseContentThirtySevenSignals.java | 16 + .../ConnectionResponseContentTwitter.java | 16 + .../ConnectionResponseContentUntappd.java | 16 + .../ConnectionResponseContentVkontakte.java | 16 + .../types/ConnectionResponseContentWeibo.java | 16 + .../ConnectionResponseContentWindowsLive.java | 16 + .../ConnectionResponseContentWordpress.java | 16 + .../types/ConnectionResponseContentYahoo.java | 16 + .../ConnectionResponseContentYammer.java | 16 + .../ConnectionResponseContentYandex.java | 16 + .../mgmt/types/ConnectionScriptsOAuth1.java | 111 ++ .../mgmt/types/ConnectionScriptsOAuth2.java | 10 + .../ConnectionSignatureMethodOAuth1.java | 75 + .../mgmt/types/ConnectionSigningKeySaml.java | 10 + .../mgmt/types/ConnectionTotpEmail.java | 10 + .../client/mgmt/types/ConnectionTotpSms.java | 10 + .../mgmt/types/ConnectionUpstreamAlias.java | 10 + .../mgmt/types/ConnectionUpstreamValue.java | 10 + .../ConnectionUsernameValidationOptions.java | 16 + .../types/ConnectionValidationOptions.java | 10 + .../CreateActionModuleResponseContent.java | 10 + ...ateActionModuleVersionResponseContent.java | 10 + .../types/CreateActionRequestContent.java | 16 + .../types/CreateActionResponseContent.java | 10 + ...eBrandingPhoneProviderResponseContent.java | 16 + .../CreateBrandingThemeResponseContent.java | 16 + ...ticationMethodSelfSignedTlsClientAuth.java | 10 + .../CreateClientGrantRequestContent.java | 16 + .../CreateClientGrantResponseContent.java | 10 + .../types/CreateClientRequestContent.java | 48 +- .../types/CreateClientResponseContent.java | 18 +- .../mgmt/types/CreateConnectionCommon.java | 10 + ...CreateConnectionProfileRequestContent.java | 16 + ...reateConnectionProfileResponseContent.java | 10 + .../types/CreateConnectionRequestContent.java | 32 +- .../CreateConnectionRequestContentAd.java | 16 + .../CreateConnectionRequestContentAdfs.java | 16 + .../CreateConnectionRequestContentAmazon.java | 16 + .../CreateConnectionRequestContentAol.java | 16 + .../CreateConnectionRequestContentApple.java | 16 + .../CreateConnectionRequestContentAuth0.java | 16 + ...eateConnectionRequestContentAuth0Oidc.java | 16 + ...CreateConnectionRequestContentAzureAd.java | 16 + .../CreateConnectionRequestContentBaidu.java | 16 + ...eateConnectionRequestContentBitbucket.java | 16 + .../CreateConnectionRequestContentBitly.java | 16 + .../CreateConnectionRequestContentBox.java | 16 + .../CreateConnectionRequestContentCustom.java | 16 + ...reateConnectionRequestContentDaccount.java | 16 + ...CreateConnectionRequestContentDropbox.java | 16 + .../CreateConnectionRequestContentDwolla.java | 16 + .../CreateConnectionRequestContentEmail.java | 16 + ...reateConnectionRequestContentEvernote.java | 16 + ...nnectionRequestContentEvernoteSandbox.java | 16 + .../CreateConnectionRequestContentExact.java | 16 + ...reateConnectionRequestContentFacebook.java | 16 + .../CreateConnectionRequestContentFitbit.java | 16 + .../CreateConnectionRequestContentFlickr.java | 16 + .../CreateConnectionRequestContentGitHub.java | 16 + ...ateConnectionRequestContentGoogleApps.java | 16 + ...eConnectionRequestContentGoogleOAuth2.java | 16 + ...eateConnectionRequestContentInstagram.java | 16 + .../CreateConnectionRequestContentIp.java | 16 + .../CreateConnectionRequestContentLine.java | 16 + ...reateConnectionRequestContentLinkedin.java | 16 + ...CreateConnectionRequestContentMiicard.java | 16 + .../CreateConnectionRequestContentOAuth1.java | 16 + .../CreateConnectionRequestContentOAuth2.java | 16 + ...eateConnectionRequestContentOffice365.java | 16 + .../CreateConnectionRequestContentOidc.java | 16 + .../CreateConnectionRequestContentOkta.java | 16 + .../CreateConnectionRequestContentPaypal.java | 16 + ...ConnectionRequestContentPaypalSandbox.java | 16 + ...eConnectionRequestContentPingFederate.java | 16 + ...onnectionRequestContentPlanningCenter.java | 16 + .../CreateConnectionRequestContentRenren.java | 16 + ...ateConnectionRequestContentSalesforce.java | 16 + ...tionRequestContentSalesforceCommunity.java | 16 + ...ectionRequestContentSalesforceSandbox.java | 16 + .../CreateConnectionRequestContentSaml.java | 16 + ...ateConnectionRequestContentSharepoint.java | 16 + .../CreateConnectionRequestContentShop.java | 16 + ...CreateConnectionRequestContentShopify.java | 16 + .../CreateConnectionRequestContentSms.java | 16 + ...ateConnectionRequestContentSoundcloud.java | 16 + ...ctionRequestContentThirtySevenSignals.java | 16 + ...CreateConnectionRequestContentTwitter.java | 16 + ...CreateConnectionRequestContentUntappd.java | 16 + ...eateConnectionRequestContentVkontakte.java | 16 + .../CreateConnectionRequestContentWeibo.java | 16 + ...teConnectionRequestContentWindowsLive.java | 16 + ...eateConnectionRequestContentWordpress.java | 16 + .../CreateConnectionRequestContentYahoo.java | 16 + .../CreateConnectionRequestContentYammer.java | 16 + .../CreateConnectionRequestContentYandex.java | 16 + .../CreateConnectionResponseContent.java | 10 + .../CreateCustomDomainRequestContent.java | 16 + .../CreateCustomDomainResponseContent.java | 16 + ...teDirectoryProvisioningRequestContent.java | 10 + ...eDirectoryProvisioningResponseContent.java | 16 + ...rectorySynchronizationResponseContent.java | 16 + .../CreateEmailProviderResponseContent.java | 10 + .../CreateEmailTemplateRequestContent.java | 16 + .../CreateEmailTemplateResponseContent.java | 16 + ...ptionKeyPublicWrappingResponseContent.java | 16 + .../CreateEncryptionKeyResponseContent.java | 16 + ...CreateEventStreamActionRequestContent.java | 16 + ...eEventStreamEventBridgeRequestContent.java | 16 + ...eEventStreamRedeliveryResponseContent.java | 10 + ...ateEventStreamTestEventRequestContent.java | 16 + ...teEventStreamTestEventResponseContent.java | 16 + ...reateEventStreamWebHookRequestContent.java | 16 + .../mgmt/types/CreateExportUsersFields.java | 16 + .../CreateExportUsersResponseContent.java | 16 + .../mgmt/types/CreateFlowRequestContent.java | 16 + .../mgmt/types/CreateFlowResponseContent.java | 16 + ...wsVaultConnectionActivecampaignApiKey.java | 16 + ...ConnectionActivecampaignUninitialized.java | 16 + ...ateFlowsVaultConnectionAirtableApiKey.java | 16 + ...sVaultConnectionAirtableUninitialized.java | 16 + ...eateFlowsVaultConnectionAuth0OauthApp.java | 16 + ...lowsVaultConnectionAuth0Uninitialized.java | 16 + ...CreateFlowsVaultConnectionBigqueryJwt.java | 16 + ...sVaultConnectionBigqueryUninitialized.java | 16 + ...ateFlowsVaultConnectionClearbitApiKey.java | 16 + ...sVaultConnectionClearbitUninitialized.java | 16 + ...FlowsVaultConnectionDocusignOauthCode.java | 16 + ...sVaultConnectionDocusignUninitialized.java | 16 + ...sVaultConnectionGoogleSheetsOauthCode.java | 16 + ...ltConnectionGoogleSheetsUninitialized.java | 16 + .../CreateFlowsVaultConnectionHttpApiKey.java | 16 + ...eateFlowsVaultConnectionHttpBasicAuth.java | 16 + .../CreateFlowsVaultConnectionHttpBearer.java | 16 + ...tConnectionHttpOauthClientCredentials.java | 16 + ...FlowsVaultConnectionHttpUninitialized.java | 16 + ...eateFlowsVaultConnectionHubspotApiKey.java | 16 + ...eFlowsVaultConnectionHubspotOauthCode.java | 16 + ...wsVaultConnectionHubspotUninitialized.java | 16 + .../CreateFlowsVaultConnectionJwtJwt.java | 16 + ...eFlowsVaultConnectionJwtUninitialized.java | 16 + ...teFlowsVaultConnectionMailchimpApiKey.java | 16 + ...lowsVaultConnectionMailchimpOauthCode.java | 16 + ...VaultConnectionMailchimpUninitialized.java | 16 + ...eateFlowsVaultConnectionMailjetApiKey.java | 16 + ...wsVaultConnectionMailjetUninitialized.java | 16 + ...lowsVaultConnectionPipedriveOauthCode.java | 16 + ...ateFlowsVaultConnectionPipedriveToken.java | 16 + ...VaultConnectionPipedriveUninitialized.java | 16 + ...teFlowsVaultConnectionResponseContent.java | 16 + ...owsVaultConnectionSalesforceOauthCode.java | 16 + ...aultConnectionSalesforceUninitialized.java | 16 + ...ateFlowsVaultConnectionSendgridApiKey.java | 16 + ...sVaultConnectionSendgridUninitialized.java | 16 + ...ateFlowsVaultConnectionSlackOauthCode.java | 16 + ...lowsVaultConnectionSlackUninitialized.java | 16 + ...reateFlowsVaultConnectionSlackWebhook.java | 16 + ...eateFlowsVaultConnectionStripeKeyPair.java | 16 + ...teFlowsVaultConnectionStripeOauthCode.java | 16 + ...owsVaultConnectionStripeUninitialized.java | 16 + ...eateFlowsVaultConnectionTelegramToken.java | 16 + ...sVaultConnectionTelegramUninitialized.java | 16 + ...reateFlowsVaultConnectionTwilioApiKey.java | 16 + ...owsVaultConnectionTwilioUninitialized.java | 16 + ...eateFlowsVaultConnectionWhatsappToken.java | 16 + ...sVaultConnectionWhatsappUninitialized.java | 16 + ...owsVaultConnectionZapierUninitialized.java | 16 + ...eateFlowsVaultConnectionZapierWebhook.java | 16 + .../mgmt/types/CreateFormRequestContent.java | 16 + .../mgmt/types/CreateFormResponseContent.java | 16 + ...ardianEnrollmentTicketResponseContent.java | 10 + .../mgmt/types/CreateHookRequestContent.java | 16 + .../mgmt/types/CreateHookResponseContent.java | 10 + .../CreateImportUsersResponseContent.java | 16 + .../CreateLogStreamDatadogRequestBody.java | 16 + ...CreateLogStreamEventBridgeRequestBody.java | 16 + .../CreateLogStreamEventGridRequestBody.java | 16 + .../types/CreateLogStreamHttpRequestBody.java | 16 + .../CreateLogStreamMixpanelRequestBody.java | 16 + .../CreateLogStreamSegmentRequestBody.java | 16 + .../CreateLogStreamSplunkRequestBody.java | 16 + .../types/CreateLogStreamSumoRequestBody.java | 16 + .../types/CreateNetworkAclRequestContent.java | 16 + ...izationDiscoveryDomainResponseContent.java | 16 + ...OrganizationInvitationResponseContent.java | 10 + .../CreateOrganizationRequestContent.java | 16 + .../CreateOrganizationResponseContent.java | 10 + ...ePhoneProviderSendTestResponseContent.java | 10 + .../CreatePhoneTemplateResponseContent.java | 16 + ...mplateTestNotificationResponseContent.java | 16 + ...blicKeyDeviceCredentialRequestContent.java | 24 +- ...licKeyDeviceCredentialResponseContent.java | 16 + .../CreateResourceServerRequestContent.java | 16 + .../CreateResourceServerResponseContent.java | 10 + .../mgmt/types/CreateRoleRequestContent.java | 16 + .../mgmt/types/CreateRoleResponseContent.java | 10 + .../mgmt/types/CreateRuleRequestContent.java | 16 + .../mgmt/types/CreateRuleResponseContent.java | 10 + ...CreateScimConfigurationRequestContent.java | 10 + ...reateScimConfigurationResponseContent.java | 10 + .../types/CreateScimTokenResponseContent.java | 10 + ...reateSelfServiceProfileRequestContent.java | 24 +- ...eateSelfServiceProfileResponseContent.java | 14 +- ...erviceProfileSsoTicketResponseContent.java | 10 + ...ateTokenExchangeProfileRequestContent.java | 16 + ...teTokenExchangeProfileResponseContent.java | 10 + .../client/mgmt/types/CreateTokenQuota.java | 16 + ...ateUserAttributeProfileRequestContent.java | 16 + ...teUserAttributeProfileResponseContent.java | 10 + ...erAuthenticationMethodResponseContent.java | 16 + .../mgmt/types/CreateUserRequestContent.java | 16 + .../mgmt/types/CreateUserResponseContent.java | 14 +- ...ableCredentialTemplateResponseContent.java | 10 + ...reateVerificationEmailResponseContent.java | 16 + .../auth0/client/mgmt/types/CredentialId.java | 16 + .../auth0/client/mgmt/types/CustomDomain.java | 16 + .../types/CustomProviderConfiguration.java | 10 + .../mgmt/types/CustomProviderCredentials.java | 10 + .../mgmt/types/CustomSigningKeyJwk.java | 16 + .../auth0/client/mgmt/types/DailyStats.java | 10 + .../client/mgmt/types/DefaultTokenQuota.java | 10 + .../types/DeleteActionRequestParameters.java | 10 + ...erBlocksByIdentifierRequestParameters.java | 16 + ...eteUserGrantByUserIdRequestParameters.java | 16 + ...DeleteUserIdentityResponseContentItem.java | 24 +- .../types/DeployActionResponseContent.java | 10 + .../DeployActionVersionRequestContent.java | 10 + .../DeployActionVersionResponseContent.java | 10 + .../client/mgmt/types/DeviceCredential.java | 10 + .../mgmt/types/DirectoryProvisioning.java | 16 + .../DirectoryProvisioningMappingItem.java | 16 + .../client/mgmt/types/DomainCertificate.java | 10 + .../client/mgmt/types/DomainVerification.java | 10 + .../mgmt/types/DomainVerificationMethod.java | 16 + .../client/mgmt/types/EmailAttribute.java | 10 + .../mgmt/types/EmailProviderCredentials.java | 10 + ...lProviderCredentialsSchemaAccessKeyId.java | 10 + .../EmailProviderCredentialsSchemaApiKey.java | 10 + ...mailProviderCredentialsSchemaClientId.java | 10 + ...iderCredentialsSchemaConnectionString.java | 10 + ...mailProviderCredentialsSchemaSmtpHost.java | 10 + .../EmailProviderCredentialsSchemaThree.java | 10 + .../EmailProviderCredentialsSchemaZero.java | 16 + .../client/mgmt/types/EncryptionKey.java | 16 + .../types/EventStreamActionConfiguration.java | 16 + .../types/EventStreamActionDestination.java | 16 + .../EventStreamActionResponseContent.java | 10 + .../mgmt/types/EventStreamCloudEvent.java | 10 + .../mgmt/types/EventStreamDelivery.java | 16 + .../types/EventStreamDeliveryAttempt.java | 16 + .../EventStreamEventBridgeConfiguration.java | 16 + .../EventStreamEventBridgeDestination.java | 16 + ...EventStreamEventBridgeResponseContent.java | 10 + .../mgmt/types/EventStreamSubscription.java | 10 + .../types/EventStreamWebhookBasicAuth.java | 16 + .../types/EventStreamWebhookBearerAuth.java | 16 + .../EventStreamWebhookConfiguration.java | 16 + .../types/EventStreamWebhookDestination.java | 16 + .../EventStreamWebhookResponseContent.java | 10 + .../mgmt/types/ExpressConfiguration.java | 16 + .../types/ExpressConfigurationOrNull.java | 16 + ...ExtensibilityEmailProviderCredentials.java | 10 + .../types/FederatedConnectionTokenSet.java | 10 + .../FlowActionActivecampaignListContacts.java | 16 + ...ctionActivecampaignListContactsParams.java | 16 + ...FlowActionActivecampaignUpsertContact.java | 16 + ...tionActivecampaignUpsertContactParams.java | 16 + .../types/FlowActionAirtableCreateRecord.java | 16 + .../FlowActionAirtableCreateRecordParams.java | 16 + .../types/FlowActionAirtableListRecords.java | 16 + .../FlowActionAirtableListRecordsParams.java | 16 + .../types/FlowActionAirtableUpdateRecord.java | 16 + .../FlowActionAirtableUpdateRecordParams.java | 16 + .../mgmt/types/FlowActionAuth0CreateUser.java | 16 + .../FlowActionAuth0CreateUserParams.java | 16 + .../mgmt/types/FlowActionAuth0GetUser.java | 16 + .../types/FlowActionAuth0GetUserParams.java | 16 + .../mgmt/types/FlowActionAuth0MakeCall.java | 16 + .../types/FlowActionAuth0MakeCallParams.java | 16 + .../mgmt/types/FlowActionAuth0SendEmail.java | 16 + .../types/FlowActionAuth0SendEmailParams.java | 16 + .../FlowActionAuth0SendEmailParamsFrom.java | 16 + .../types/FlowActionAuth0SendRequest.java | 16 + .../FlowActionAuth0SendRequestParams.java | 16 + .../mgmt/types/FlowActionAuth0SendSms.java | 16 + .../types/FlowActionAuth0SendSmsParams.java | 16 + .../mgmt/types/FlowActionAuth0UpdateUser.java | 16 + .../FlowActionAuth0UpdateUserParams.java | 16 + .../types/FlowActionBigqueryInsertRows.java | 16 + .../FlowActionBigqueryInsertRowsParams.java | 16 + .../types/FlowActionClearbitFindCompany.java | 16 + .../FlowActionClearbitFindCompanyParams.java | 16 + .../types/FlowActionClearbitFindPerson.java | 16 + .../FlowActionClearbitFindPersonParams.java | 16 + .../types/FlowActionEmailVerifyEmail.java | 16 + .../FlowActionEmailVerifyEmailParams.java | 16 + ...FlowActionEmailVerifyEmailParamsRules.java | 10 + .../types/FlowActionFlowBooleanCondition.java | 16 + .../FlowActionFlowBooleanConditionParams.java | 10 + .../mgmt/types/FlowActionFlowDelayFlow.java | 16 + .../types/FlowActionFlowDelayFlowParams.java | 16 + .../mgmt/types/FlowActionFlowDoNothing.java | 16 + .../types/FlowActionFlowDoNothingParams.java | 10 + .../types/FlowActionFlowErrorMessage.java | 16 + .../FlowActionFlowErrorMessageParams.java | 16 + .../mgmt/types/FlowActionFlowMapValue.java | 16 + .../types/FlowActionFlowMapValueParams.java | 16 + .../mgmt/types/FlowActionFlowReturnJson.java | 16 + .../types/FlowActionFlowReturnJsonParams.java | 16 + .../mgmt/types/FlowActionFlowStoreVars.java | 16 + .../types/FlowActionFlowStoreVarsParams.java | 10 + .../types/FlowActionGoogleSheetsAddRow.java | 16 + .../FlowActionGoogleSheetsAddRowParams.java | 16 + .../mgmt/types/FlowActionHttpSendRequest.java | 16 + .../FlowActionHttpSendRequestParams.java | 16 + ...wActionHttpSendRequestParamsBasicAuth.java | 10 + .../types/FlowActionHubspotEnrollContact.java | 16 + .../FlowActionHubspotEnrollContactParams.java | 16 + .../types/FlowActionHubspotGetContact.java | 16 + .../FlowActionHubspotGetContactParams.java | 16 + .../types/FlowActionHubspotUpsertContact.java | 16 + .../FlowActionHubspotUpsertContactParams.java | 16 + ...ionHubspotUpsertContactParamsProperty.java | 16 + .../mgmt/types/FlowActionJsonCreateJson.java | 16 + .../types/FlowActionJsonCreateJsonParams.java | 10 + .../mgmt/types/FlowActionJsonParseJson.java | 16 + .../types/FlowActionJsonParseJsonParams.java | 16 + .../types/FlowActionJsonSerializeJson.java | 16 + .../FlowActionJsonSerializeJsonParams.java | 16 + .../mgmt/types/FlowActionJwtDecodeJwt.java | 16 + .../types/FlowActionJwtDecodeJwtParams.java | 16 + .../mgmt/types/FlowActionJwtSignJwt.java | 16 + .../types/FlowActionJwtSignJwtParams.java | 16 + .../mgmt/types/FlowActionJwtVerifyJwt.java | 16 + .../types/FlowActionJwtVerifyJwtParams.java | 16 + .../FlowActionMailchimpUpsertMember.java | 16 + ...FlowActionMailchimpUpsertMemberParams.java | 16 + ...tionMailchimpUpsertMemberParamsMember.java | 16 + .../types/FlowActionMailjetSendEmail.java | 16 + ...owActionMailjetSendEmailParamsContent.java | 16 + ...ctionMailjetSendEmailParamsTemplateId.java | 16 + .../mgmt/types/FlowActionOtpGenerateCode.java | 16 + .../FlowActionOtpGenerateCodeParams.java | 16 + .../mgmt/types/FlowActionOtpVerifyCode.java | 16 + .../types/FlowActionOtpVerifyCodeParams.java | 16 + .../types/FlowActionPipedriveAddDeal.java | 16 + .../FlowActionPipedriveAddDealParams.java | 16 + .../FlowActionPipedriveAddOrganization.java | 16 + ...wActionPipedriveAddOrganizationParams.java | 16 + .../types/FlowActionPipedriveAddPerson.java | 16 + .../FlowActionPipedriveAddPersonParams.java | 16 + .../types/FlowActionSalesforceCreateLead.java | 16 + .../FlowActionSalesforceCreateLeadParams.java | 16 + .../types/FlowActionSalesforceGetLead.java | 16 + .../FlowActionSalesforceGetLeadParams.java | 16 + .../FlowActionSalesforceSearchLeads.java | 16 + ...FlowActionSalesforceSearchLeadsParams.java | 16 + .../types/FlowActionSalesforceUpdateLead.java | 16 + .../FlowActionSalesforceUpdateLeadParams.java | 16 + .../types/FlowActionSendgridSendEmail.java | 16 + .../FlowActionSendgridSendEmailParams.java | 16 + ...owActionSendgridSendEmailParamsPerson.java | 16 + .../types/FlowActionSlackPostMessage.java | 16 + .../FlowActionSlackPostMessageParams.java | 16 + ...ctionSlackPostMessageParamsAttachment.java | 10 + ...SlackPostMessageParamsAttachmentField.java | 16 + .../mgmt/types/FlowActionStripeAddTaxId.java | 16 + .../types/FlowActionStripeAddTaxIdParams.java | 16 + .../mgmt/types/FlowActionStripeAddress.java | 10 + .../types/FlowActionStripeCreateCustomer.java | 16 + .../FlowActionStripeCreateCustomerParams.java | 16 + .../FlowActionStripeCreatePortalSession.java | 16 + ...ActionStripeCreatePortalSessionParams.java | 16 + .../types/FlowActionStripeDeleteTaxId.java | 16 + .../FlowActionStripeDeleteTaxIdParams.java | 16 + .../types/FlowActionStripeFindCustomers.java | 16 + .../FlowActionStripeFindCustomersParams.java | 16 + .../types/FlowActionStripeGetCustomer.java | 16 + .../FlowActionStripeGetCustomerParams.java | 16 + .../mgmt/types/FlowActionStripeTaxId.java | 16 + .../types/FlowActionStripeUpdateCustomer.java | 16 + .../FlowActionStripeUpdateCustomerParams.java | 16 + .../types/FlowActionTelegramSendMessage.java | 16 + .../FlowActionTelegramSendMessageParams.java | 16 + .../mgmt/types/FlowActionTwilioMakeCall.java | 16 + .../types/FlowActionTwilioMakeCallParams.java | 16 + .../mgmt/types/FlowActionTwilioSendSms.java | 16 + .../types/FlowActionTwilioSendSmsParams.java | 16 + .../types/FlowActionWhatsappSendMessage.java | 16 + .../FlowActionWhatsappSendMessageParams.java | 16 + .../mgmt/types/FlowActionXmlParseXml.java | 16 + .../types/FlowActionXmlParseXmlParams.java | 16 + .../mgmt/types/FlowActionXmlSerializeXml.java | 16 + .../FlowActionXmlSerializeXmlParams.java | 16 + .../types/FlowActionZapierTriggerWebhook.java | 16 + .../FlowActionZapierTriggerWebhookParams.java | 16 + .../mgmt/types/FlowExecutionSummary.java | 16 + .../auth0/client/mgmt/types/FlowSummary.java | 16 + .../types/FlowsVaultConnectioSetupApiKey.java | 16 + ...sVaultConnectioSetupApiKeyWithBaseUrl.java | 16 + ...wsVaultConnectioSetupBigqueryOauthJwt.java | 10 + .../FlowsVaultConnectioSetupHttpBearer.java | 16 + .../types/FlowsVaultConnectioSetupJwt.java | 16 + ...FlowsVaultConnectioSetupMailjetApiKey.java | 16 + .../FlowsVaultConnectioSetupOauthApp.java | 16 + .../FlowsVaultConnectioSetupOauthCode.java | 10 + .../FlowsVaultConnectioSetupSecretApiKey.java | 16 + ...FlowsVaultConnectioSetupStripeKeyPair.java | 16 + .../types/FlowsVaultConnectioSetupToken.java | 16 + .../FlowsVaultConnectioSetupTwilioApiKey.java | 16 + .../FlowsVaultConnectioSetupWebhook.java | 16 + .../FlowsVaultConnectionHttpApiKeySetup.java | 16 + ...lowsVaultConnectionHttpBasicAuthSetup.java | 16 + ...ectionHttpOauthClientCredentialsSetup.java | 16 + .../types/FlowsVaultConnectionSummary.java | 16 + .../client/mgmt/types/FormBlockDivider.java | 16 + .../mgmt/types/FormBlockDividerConfig.java | 10 + .../client/mgmt/types/FormBlockHtml.java | 16 + .../mgmt/types/FormBlockHtmlConfig.java | 10 + .../client/mgmt/types/FormBlockImage.java | 16 + .../mgmt/types/FormBlockImageConfig.java | 16 + .../mgmt/types/FormBlockJumpButton.java | 16 + .../mgmt/types/FormBlockJumpButtonConfig.java | 16 + .../types/FormBlockJumpButtonConfigStyle.java | 10 + .../mgmt/types/FormBlockNextButton.java | 16 + .../mgmt/types/FormBlockNextButtonConfig.java | 16 + .../mgmt/types/FormBlockPreviousButton.java | 16 + .../types/FormBlockPreviousButtonConfig.java | 16 + .../mgmt/types/FormBlockResendButton.java | 16 + .../types/FormBlockResendButtonConfig.java | 16 + .../client/mgmt/types/FormBlockRichText.java | 16 + .../mgmt/types/FormBlockRichTextConfig.java | 10 + .../client/mgmt/types/FormEndingNode.java | 10 + .../mgmt/types/FormEndingNodeAfterSubmit.java | 10 + .../mgmt/types/FormEndingNodeRedirection.java | 16 + .../client/mgmt/types/FormFieldBoolean.java | 16 + .../mgmt/types/FormFieldBooleanConfig.java | 10 + .../types/FormFieldBooleanConfigOptions.java | 10 + .../client/mgmt/types/FormFieldCards.java | 16 + .../mgmt/types/FormFieldCardsConfig.java | 10 + .../types/FormFieldCardsConfigOption.java | 16 + .../client/mgmt/types/FormFieldChoice.java | 16 + .../mgmt/types/FormFieldChoiceConfig.java | 10 + .../FormFieldChoiceConfigAllowOther.java | 10 + .../types/FormFieldChoiceConfigOption.java | 16 + .../client/mgmt/types/FormFieldCustom.java | 16 + .../mgmt/types/FormFieldCustomConfig.java | 16 + .../client/mgmt/types/FormFieldDate.java | 16 + .../mgmt/types/FormFieldDateConfig.java | 10 + .../client/mgmt/types/FormFieldDropdown.java | 16 + .../mgmt/types/FormFieldDropdownConfig.java | 10 + .../types/FormFieldDropdownConfigOption.java | 16 + .../client/mgmt/types/FormFieldEmail.java | 16 + .../mgmt/types/FormFieldEmailConfig.java | 10 + .../client/mgmt/types/FormFieldFile.java | 16 + .../mgmt/types/FormFieldFileConfig.java | 10 + .../types/FormFieldFileConfigStorage.java | 16 + .../client/mgmt/types/FormFieldLegal.java | 16 + .../mgmt/types/FormFieldLegalConfig.java | 10 + .../client/mgmt/types/FormFieldNumber.java | 16 + .../mgmt/types/FormFieldNumberConfig.java | 10 + .../client/mgmt/types/FormFieldPassword.java | 16 + .../mgmt/types/FormFieldPasswordConfig.java | 10 + .../client/mgmt/types/FormFieldPayment.java | 16 + .../mgmt/types/FormFieldPaymentConfig.java | 16 + .../FormFieldPaymentConfigChargeOneOff.java | 16 + ...mFieldPaymentConfigChargeOneOffOneOff.java | 16 + ...mFieldPaymentConfigChargeSubscription.java | 16 + .../FormFieldPaymentConfigCredentials.java | 16 + ...FormFieldPaymentConfigFieldProperties.java | 10 + .../types/FormFieldPaymentConfigFields.java | 10 + .../client/mgmt/types/FormFieldSocial.java | 16 + .../mgmt/types/FormFieldSocialConfig.java | 10 + .../auth0/client/mgmt/types/FormFieldTel.java | 16 + .../client/mgmt/types/FormFieldTelConfig.java | 10 + .../mgmt/types/FormFieldTelConfigStrings.java | 10 + .../client/mgmt/types/FormFieldText.java | 16 + .../mgmt/types/FormFieldTextConfig.java | 10 + .../auth0/client/mgmt/types/FormFieldUrl.java | 16 + .../client/mgmt/types/FormFieldUrlConfig.java | 10 + .../com/auth0/client/mgmt/types/FormFlow.java | 16 + .../client/mgmt/types/FormFlowConfig.java | 16 + .../client/mgmt/types/FormHiddenField.java | 16 + .../client/mgmt/types/FormLanguages.java | 10 + .../auth0/client/mgmt/types/FormMessages.java | 10 + .../mgmt/types/FormNodeCoordinates.java | 16 + .../auth0/client/mgmt/types/FormRouter.java | 16 + .../client/mgmt/types/FormRouterConfig.java | 10 + .../client/mgmt/types/FormRouterRule.java | 16 + .../client/mgmt/types/FormStartNode.java | 10 + .../com/auth0/client/mgmt/types/FormStep.java | 16 + .../client/mgmt/types/FormStepConfig.java | 10 + .../auth0/client/mgmt/types/FormStyle.java | 10 + .../auth0/client/mgmt/types/FormSummary.java | 16 + .../FormWidgetAuth0VerifiableCredentials.java | 16 + ...idgetAuth0VerifiableCredentialsConfig.java | 16 + .../mgmt/types/FormWidgetGMapsAddress.java | 16 + .../types/FormWidgetGMapsAddressConfig.java | 16 + .../mgmt/types/FormWidgetRecaptcha.java | 16 + .../mgmt/types/FormWidgetRecaptchaConfig.java | 16 + .../GetActionExecutionResponseContent.java | 10 + ...GetActionModuleActionsResponseContent.java | 10 + .../types/GetActionModuleResponseContent.java | 10 + ...GetActionModuleVersionResponseContent.java | 10 + ...etActionModuleVersionsResponseContent.java | 10 + .../GetActionModulesResponseContent.java | 10 + .../mgmt/types/GetActionResponseContent.java | 10 + .../GetActionVersionResponseContent.java | 10 + .../mgmt/types/GetAculResponseContent.java | 10 + ...ttackProtectionCaptchaResponseContent.java | 10 + ...etBotDetectionSettingsResponseContent.java | 16 + ...etBrandingDefaultThemeResponseContent.java | 16 + ...tBrandingPhoneProviderResponseContent.java | 16 + .../types/GetBrandingResponseContent.java | 10 + .../GetBrandingThemeResponseContent.java | 16 + ...swordDetectionSettingsResponseContent.java | 18 +- .../GetBruteForceSettingsResponseContent.java | 14 +- .../GetClientCredentialResponseContent.java | 10 + .../types/GetClientGrantResponseContent.java | 10 + .../types/GetClientRequestParameters.java | 10 + .../mgmt/types/GetClientResponseContent.java | 18 +- ...nnectionEnabledClientsResponseContent.java | 10 + .../GetConnectionProfileResponseContent.java | 10 + ...nectionProfileTemplateResponseContent.java | 10 + .../types/GetConnectionRequestParameters.java | 14 +- .../types/GetConnectionResponseContent.java | 10 + .../types/GetCustomDomainResponseContent.java | 16 + .../GetCustomSigningKeysResponseContent.java | 10 + .../types/GetDailyStatsRequestParameters.java | 10 + ...isioningDefaultMappingResponseContent.java | 10 + ...tDirectoryProvisioningResponseContent.java | 16 + .../GetEmailProviderResponseContent.java | 10 + .../GetEmailTemplateResponseContent.java | 10 + .../GetEncryptionKeyResponseContent.java | 16 + ...tStreamDeliveryHistoryResponseContent.java | 16 + .../GetFlowExecutionResponseContent.java | 16 + .../mgmt/types/GetFlowRequestParameters.java | 10 + .../mgmt/types/GetFlowResponseContent.java | 16 + ...etFlowsVaultConnectionResponseContent.java | 16 + .../mgmt/types/GetFormRequestParameters.java | 10 + .../mgmt/types/GetFormResponseContent.java | 16 + .../types/GetGroupMembersResponseContent.java | 10 + .../mgmt/types/GetGroupResponseContent.java | 16 + .../GetGuardianEnrollmentResponseContent.java | 16 + ...rdianFactorDuoSettingsResponseContent.java | 10 + ...actorPhoneMessageTypesResponseContent.java | 10 + ...anFactorPhoneTemplatesResponseContent.java | 16 + ...dianFactorSmsTemplatesResponseContent.java | 16 + ...ianFactorsProviderApnsResponseContent.java | 10 + ...anFactorsProviderPhoneResponseContent.java | 10 + ...orsProviderPhoneTwilioResponseContent.java | 10 + ...oviderPushNotificationResponseContent.java | 10 + ...dianFactorsProviderSmsResponseContent.java | 10 + ...ctorsProviderSmsTwilioResponseContent.java | 10 + ...dianFactorsProviderSnsResponseContent.java | 10 + .../mgmt/types/GetHookRequestParameters.java | 10 + .../mgmt/types/GetHookResponseContent.java | 10 + .../types/GetJobErrorResponseContent.java | 10 + .../GetJobGenericErrorResponseContent.java | 16 + .../mgmt/types/GetJobImportUserError.java | 10 + .../mgmt/types/GetJobResponseContent.java | 16 + .../client/mgmt/types/GetJobSummary.java | 10 + .../mgmt/types/GetLogResponseContent.java | 10 + .../types/GetNetworkAclsResponseContent.java | 10 + .../GetOrganizationByNameResponseContent.java | 10 + ...OrganizationConnectionResponseContent.java | 10 + ...nDiscoveryDomainByNameResponseContent.java | 16 + ...izationDiscoveryDomainResponseContent.java | 16 + ...OrganizationInvitationResponseContent.java | 10 + .../types/GetOrganizationResponseContent.java | 10 + .../GetPhoneTemplateResponseContent.java | 16 + .../types/GetRefreshTokenResponseContent.java | 10 + .../GetResourceServerRequestParameters.java | 10 + .../GetResourceServerResponseContent.java | 10 + ...mentsSettingsNewDeviceResponseContent.java | 16 + ...iskAssessmentsSettingsResponseContent.java | 16 + .../mgmt/types/GetRoleResponseContent.java | 10 + .../mgmt/types/GetRuleRequestParameters.java | 10 + .../mgmt/types/GetRuleResponseContent.java | 10 + ...gurationDefaultMappingResponseContent.java | 10 + .../GetScimConfigurationResponseContent.java | 10 + .../GetSelfServiceProfileResponseContent.java | 14 +- .../mgmt/types/GetSessionResponseContent.java | 10 + .../types/GetSettingsResponseContent.java | 10 + .../types/GetSigningKeysResponseContent.java | 16 + ...GetSupplementalSignalsResponseContent.java | 10 + ...usIpThrottlingSettingsResponseContent.java | 14 +- .../GetTenantSettingsResponseContent.java | 10 + ...etTokenExchangeProfileResponseContent.java | 10 + .../mgmt/types/GetUniversalLoginTemplate.java | 10 + ...etUserAttributeProfileResponseContent.java | 10 + ...tributeProfileTemplateResponseContent.java | 10 + ...erAuthenticationMethodResponseContent.java | 16 + ...GetUserGroupsPaginatedResponseContent.java | 10 + .../mgmt/types/GetUserRequestParameters.java | 10 + .../mgmt/types/GetUserResponseContent.java | 14 +- ...ableCredentialTemplateResponseContent.java | 10 + .../com/auth0/client/mgmt/types/Group.java | 10 + .../auth0/client/mgmt/types/GroupMember.java | 10 + .../client/mgmt/types/GuardianFactor.java | 16 + .../com/auth0/client/mgmt/types/Hook.java | 10 + .../client/mgmt/types/HttpCustomHeader.java | 10 + .../types/IConnectionOptionsCommonOidc.java | 6 +- .../com/auth0/client/mgmt/types/Identity.java | 16 + .../ImportEncryptionKeyResponseContent.java | 16 + .../auth0/client/mgmt/types/Integration.java | 10 + .../client/mgmt/types/IntegrationRelease.java | 10 + .../mgmt/types/IntegrationRequiredParam.java | 10 + .../types/IntegrationRequiredParamOption.java | 10 + .../client/mgmt/types/IntegrationSemVer.java | 10 + .../mgmt/types/LinkedClientConfiguration.java | 16 + ...ctionBindingsPaginatedResponseContent.java | 10 + .../ListActionTriggersResponseContent.java | 10 + ...ctionVersionsPaginatedResponseContent.java | 10 + .../ListActionsPaginatedResponseContent.java | 10 + .../types/ListActionsRequestParameters.java | 10 + ...stAculsOffsetPaginatedResponseContent.java | 10 + .../types/ListAculsResponseContentItem.java | 10 + ...BrandingPhoneProvidersResponseContent.java | 10 + .../ListClientConnectionsResponseContent.java | 10 + ...OrganizationsPaginatedResponseContent.java | 14 +- ...stClientGrantPaginatedResponseContent.java | 14 +- .../ListClientGrantsRequestParameters.java | 10 + ...ClientsOffsetPaginatedResponseContent.java | 10 + .../types/ListClientsRequestParameters.java | 14 +- ...istConnectionProfileRequestParameters.java | 10 + ...nectionProfileTemplateResponseContent.java | 10 + ...ctionProfilesPaginatedResponseContent.java | 10 + ...onsCheckpointPaginatedResponseContent.java | 14 +- .../types/ListConnectionsQueryParameters.java | 14 +- .../ListCustomDomainsRequestParameters.java | 18 +- ...entialsOffsetPaginatedResponseContent.java | 10 + ...istDeviceCredentialsRequestParameters.java | 10 + ...DirectoryProvisioningsResponseContent.java | 10 + ...tionKeyOffsetPaginatedResponseContent.java | 10 + .../ListEventStreamsRequestParameters.java | 10 + .../ListEventStreamsResponseContent.java | 14 +- ...lowExecutionsPaginatedResponseContent.java | 14 +- ...stFlowsOffsetPaginatedResponseContent.java | 10 + .../types/ListFlowsRequestParameters.java | 10 + ...ectionsOffsetPaginatedResponseContent.java | 10 + ...stFormsOffsetPaginatedResponseContent.java | 10 + .../types/ListFormsRequestParameters.java | 10 + .../ListGroupsPaginatedResponseContent.java | 10 + .../types/ListGroupsRequestParameters.java | 10 + ...stHooksOffsetPaginatedResponseContent.java | 10 + .../types/ListHooksRequestParameters.java | 10 + ...ListLogOffsetPaginatedResponseContent.java | 10 + .../mgmt/types/ListLogsRequestParameters.java | 26 +- ...orkAclsOffsetPaginatedResponseContent.java | 10 + .../ListNetworkAclsRequestParameters.java | 10 + ...tGrantsOffsetPaginatedResponseContent.java | 10 + ...ectionsOffsetPaginatedResponseContent.java | 10 + ...zationDiscoveryDomainsResponseContent.java | 10 + ...tationsOffsetPaginatedResponseContent.java | 10 + ...erRolesOffsetPaginatedResponseContent.java | 10 + ...zationMembersPaginatedResponseContent.java | 10 + ...OrganizationsPaginatedResponseContent.java | 10 + .../ListOrganizationsRequestParameters.java | 14 +- .../ListPhoneTemplatesResponseContent.java | 10 + ...RefreshTokensPaginatedResponseContent.java | 10 + ...eServerOffsetPaginatedResponseContent.java | 10 + .../ListResourceServerRequestParameters.java | 14 +- ...issionsOffsetPaginatedResponseContent.java | 10 + ...ListRoleUsersPaginatedResponseContent.java | 10 + ...stRolesOffsetPaginatedResponseContent.java | 10 + .../types/ListRolesRequestParameters.java | 10 + ...stRulesOffsetPaginatedResponseContent.java | 10 + .../types/ListRulesRequestParameters.java | 10 + ...rviceProfilesPaginatedResponseContent.java | 10 + ...tSelfServiceProfilesRequestParameters.java | 10 + ...stTokenExchangeProfileResponseContent.java | 14 +- ...UserAttributeProfileRequestParameters.java | 10 + ...tributeProfileTemplateResponseContent.java | 10 + ...ibuteProfilesPaginatedResponseContent.java | 10 + ...MethodsOffsetPaginatedResponseContent.java | 10 + ...erBlocksByIdentifierRequestParameters.java | 16 + ...UserBlocksByIdentifierResponseContent.java | 10 + .../ListUserBlocksRequestParameters.java | 10 + .../types/ListUserBlocksResponseContent.java | 10 + ...tUserConnectedAccountsResponseContent.java | 10 + ...rGrantsOffsetPaginatedResponseContent.java | 10 + .../ListUserGrantsRequestParameters.java | 10 + ...zationsOffsetPaginatedResponseContent.java | 10 + ...issionsOffsetPaginatedResponseContent.java | 10 + ...erRolesOffsetPaginatedResponseContent.java | 10 + ...tUserSessionsPaginatedResponseContent.java | 10 + .../ListUsersByEmailRequestParameters.java | 16 + ...stUsersOffsetPaginatedResponseContent.java | 10 + .../types/ListUsersRequestParameters.java | 22 +- ...tialTemplatesPaginatedResponseContent.java | 14 +- .../java/com/auth0/client/mgmt/types/Log.java | 10 + .../client/mgmt/types/LogLocationInfo.java | 22 +- .../client/mgmt/types/LogSecurityContext.java | 10 + .../types/LogStreamDatadogResponseSchema.java | 10 + .../mgmt/types/LogStreamDatadogSink.java | 16 + .../LogStreamEventBridgeResponseSchema.java | 10 + .../mgmt/types/LogStreamEventBridgeSink.java | 16 + .../LogStreamEventGridResponseSchema.java | 10 + .../mgmt/types/LogStreamEventGridSink.java | 16 + .../client/mgmt/types/LogStreamFilter.java | 10 + .../types/LogStreamHttpResponseSchema.java | 10 + .../client/mgmt/types/LogStreamHttpSink.java | 16 + .../LogStreamMixpanelResponseSchema.java | 10 + .../mgmt/types/LogStreamMixpanelSink.java | 16 + .../types/LogStreamMixpanelSinkPatch.java | 16 + .../client/mgmt/types/LogStreamPiiConfig.java | 10 + .../types/LogStreamSegmentResponseSchema.java | 10 + .../mgmt/types/LogStreamSegmentSink.java | 10 + .../types/LogStreamSegmentSinkWriteKey.java | 16 + .../types/LogStreamSplunkResponseSchema.java | 10 + .../mgmt/types/LogStreamSplunkSink.java | 16 + .../types/LogStreamSumoResponseSchema.java | 10 + .../client/mgmt/types/LogStreamSumoSink.java | 16 + .../mgmt/types/MdlPresentationProperties.java | 10 + .../mgmt/types/MdlPresentationRequest.java | 16 + .../MdlPresentationRequestProperties.java | 16 + .../client/mgmt/types/NativeSocialLogin.java | 10 + .../mgmt/types/NativeSocialLoginApple.java | 10 + .../mgmt/types/NativeSocialLoginFacebook.java | 10 + .../mgmt/types/NativeSocialLoginGoogle.java | 10 + .../client/mgmt/types/NetworkAclAction.java | 10 + .../client/mgmt/types/NetworkAclMatch.java | 10 + .../client/mgmt/types/NetworkAclRule.java | 16 + .../types/NetworkAclsResponseContent.java | 10 + .../auth0/client/mgmt/types/Organization.java | 10 + .../mgmt/types/OrganizationBranding.java | 10 + .../types/OrganizationBrandingColors.java | 16 + .../mgmt/types/OrganizationClientGrant.java | 10 + .../mgmt/types/OrganizationConnection.java | 10 + .../OrganizationConnectionInformation.java | 10 + .../types/OrganizationDiscoveryDomain.java | 16 + .../types/OrganizationEnabledConnection.java | 10 + .../mgmt/types/OrganizationInvitation.java | 10 + .../types/OrganizationInvitationInvitee.java | 16 + .../types/OrganizationInvitationInviter.java | 16 + .../client/mgmt/types/OrganizationMember.java | 10 + .../mgmt/types/OrganizationMemberRole.java | 10 + .../types/PartialPhoneTemplateContent.java | 10 + .../PatchClientCredentialResponseContent.java | 10 + ...tchSupplementalSignalsResponseContent.java | 10 + .../mgmt/types/PermissionRequestPayload.java | 16 + .../types/PermissionsResponsePayload.java | 10 + .../client/mgmt/types/PhoneAttribute.java | 10 + .../mgmt/types/PhoneProviderSchemaMasked.java | 16 + .../client/mgmt/types/PhoneTemplate.java | 16 + .../client/mgmt/types/PhoneTemplateBody.java | 10 + .../mgmt/types/PhoneTemplateContent.java | 10 + .../PostClientCredentialResponseContent.java | 10 + .../mgmt/types/PublicKeyCredential.java | 16 + .../client/mgmt/types/RefreshTokenDevice.java | 10 + .../types/RefreshTokenResourceServer.java | 10 + .../types/RefreshTokenResponseContent.java | 10 + ...erateUsersRecoveryCodeResponseContent.java | 10 + .../ResetPhoneTemplateResponseContent.java | 16 + .../client/mgmt/types/ResourceServer.java | 10 + .../ResourceServerProofOfPossession.java | 16 + ...erverProofOfPossessionRequiredForEnum.java | 11 - .../mgmt/types/ResourceServerScope.java | 16 + ...esourceServerSubjectTypeAuthorization.java | 10 + ...eServerSubjectTypeAuthorizationClient.java | 10 + ...rceServerSubjectTypeAuthorizationUser.java | 10 + .../types/ResourceServerTokenEncryption.java | 16 + .../ResourceServerTokenEncryptionKey.java | 16 + .../types/RevokeUserAccessRequestContent.java | 10 + .../RevokedSigningKeysResponseContent.java | 16 + .../com/auth0/client/mgmt/types/Role.java | 10 + .../com/auth0/client/mgmt/types/RoleUser.java | 10 + .../RollbackActionModuleResponseContent.java | 10 + .../RotateClientSecretResponseContent.java | 18 +- .../RotateConnectionKeysRequestContent.java | 10 + .../RotateConnectionsKeysResponseContent.java | 16 + .../RotateSigningKeysResponseContent.java | 16 + .../com/auth0/client/mgmt/types/Rule.java | 10 + .../auth0/client/mgmt/types/RulesConfig.java | 10 + .../client/mgmt/types/ScimMappingItem.java | 10 + .../client/mgmt/types/ScimTokenItem.java | 10 + .../client/mgmt/types/SelfServiceProfile.java | 14 +- .../SelfServiceProfileBrandingColors.java | 16 + .../SelfServiceProfileBrandingProperties.java | 10 + ...rviceProfileSsoTicketConnectionConfig.java | 32 +- ...viceProfileSsoTicketConnectionOptions.java | 10 + ...ceProfileSsoTicketDomainAliasesConfig.java | 16 + ...ceProfileSsoTicketEnabledOrganization.java | 16 + ...ProfileSsoTicketGoogleWorkspaceConfig.java | 16 + ...ceProfileSsoTicketIdpInitiatedOptions.java | 18 +- ...iceProfileSsoTicketProvisioningConfig.java | 10 + .../SelfServiceProfileUserAttribute.java | 16 + .../types/SessionAuthenticationSignal.java | 10 + .../types/SessionAuthenticationSignals.java | 10 + .../mgmt/types/SessionClientMetadata.java | 10 + .../mgmt/types/SessionCookieMetadata.java | 10 + .../mgmt/types/SessionCookieSchema.java | 16 + .../mgmt/types/SessionDeviceMetadata.java | 10 + .../mgmt/types/SessionResponseContent.java | 10 + .../SetCustomSigningKeysResponseContent.java | 10 + .../types/SetEmailTemplateRequestContent.java | 16 + .../SetEmailTemplateResponseContent.java | 16 + ...rdianFactorDuoSettingsResponseContent.java | 10 + ...actorPhoneMessageTypesResponseContent.java | 10 + ...anFactorPhoneTemplatesResponseContent.java | 16 + .../SetGuardianFactorResponseContent.java | 16 + ...dianFactorSmsTemplatesResponseContent.java | 16 + ...anFactorsProviderPhoneResponseContent.java | 10 + ...orsProviderPhoneTwilioResponseContent.java | 10 + ...erPushNotificationApnsResponseContent.java | 10 + ...oviderPushNotificationResponseContent.java | 10 + ...derPushNotificationSnsResponseContent.java | 10 + ...dianFactorsProviderSmsResponseContent.java | 10 + ...ctorsProviderSmsTwilioResponseContent.java | 10 + .../types/SetNetworkAclRequestContent.java | 16 + .../types/SetNetworkAclsResponseContent.java | 10 + .../types/SetRulesConfigRequestContent.java | 16 + .../types/SetRulesConfigResponseContent.java | 16 + ...erAuthenticationMethodResponseContent.java | 16 + .../types/SetUserAuthenticationMethods.java | 16 + .../auth0/client/mgmt/types/SigningKeys.java | 16 + .../auth0/client/mgmt/types/SignupSchema.java | 10 + .../client/mgmt/types/SignupVerification.java | 10 + .../client/mgmt/types/SignupVerified.java | 10 + .../SuspiciousIpThrottlingPreLoginStage.java | 10 + ...sIpThrottlingPreUserRegistrationStage.java | 10 + .../types/SuspiciousIpThrottlingStage.java | 10 + .../mgmt/types/TenantOidcLogoutSettings.java | 10 + .../mgmt/types/TenantSettingsDeviceFlow.java | 10 + .../mgmt/types/TenantSettingsErrorPage.java | 14 +- .../mgmt/types/TenantSettingsFlags.java | 14 +- .../types/TenantSettingsGuardianPage.java | 14 +- .../client/mgmt/types/TenantSettingsMtls.java | 10 + .../types/TenantSettingsPasswordPage.java | 14 +- .../mgmt/types/TenantSettingsSessions.java | 10 + .../mgmt/types/TestActionRequestContent.java | 10 + .../mgmt/types/TestActionResponseContent.java | 10 + .../TestCustomDomainResponseContent.java | 16 + .../TokenExchangeProfileResponseContent.java | 10 + .../TokenExchangeProfilesListRequest.java | 10 + .../auth0/client/mgmt/types/TokenQuota.java | 16 + .../types/TokenQuotaClientCredentials.java | 10 + .../mgmt/types/TokenQuotaConfiguration.java | 16 + .../types/TwilioProviderConfiguration.java | 16 + .../mgmt/types/TwilioProviderCredentials.java | 16 + .../UpdateActionBindingsResponseContent.java | 10 + .../UpdateActionModuleResponseContent.java | 10 + .../types/UpdateActionRequestContent.java | 10 + .../types/UpdateActionResponseContent.java | 10 + .../mgmt/types/UpdateAculResponseContent.java | 10 + ...ttackProtectionCaptchaResponseContent.java | 10 + ...teBotDetectionSettingsResponseContent.java | 10 + .../mgmt/types/UpdateBrandingColors.java | 10 + .../client/mgmt/types/UpdateBrandingFont.java | 10 + ...eBrandingPhoneProviderResponseContent.java | 16 + .../types/UpdateBrandingRequestContent.java | 10 + .../types/UpdateBrandingResponseContent.java | 10 + .../UpdateBrandingThemeResponseContent.java | 16 + ...swordDetectionSettingsResponseContent.java | 18 +- ...dateBruteForceSettingsResponseContent.java | 14 +- .../UpdateClientGrantRequestContent.java | 10 + .../UpdateClientGrantResponseContent.java | 10 + .../types/UpdateClientRequestContent.java | 34 +- .../types/UpdateClientResponseContent.java | 18 +- .../mgmt/types/UpdateConnectionOptions.java | 10 + ...UpdateConnectionProfileRequestContent.java | 10 + ...pdateConnectionProfileResponseContent.java | 10 + .../types/UpdateConnectionRequestContent.java | 18 +- .../UpdateConnectionRequestContentAd.java | 10 + .../UpdateConnectionRequestContentAdfs.java | 10 + .../UpdateConnectionRequestContentAmazon.java | 10 + .../UpdateConnectionRequestContentAol.java | 10 + .../UpdateConnectionRequestContentApple.java | 10 + .../UpdateConnectionRequestContentAuth0.java | 10 + ...dateConnectionRequestContentAuth0Oidc.java | 10 + ...UpdateConnectionRequestContentAzureAd.java | 10 + .../UpdateConnectionRequestContentBaidu.java | 10 + ...dateConnectionRequestContentBitbucket.java | 10 + .../UpdateConnectionRequestContentBitly.java | 10 + .../UpdateConnectionRequestContentBox.java | 10 + .../UpdateConnectionRequestContentCustom.java | 10 + ...pdateConnectionRequestContentDaccount.java | 10 + ...UpdateConnectionRequestContentDropbox.java | 10 + .../UpdateConnectionRequestContentDwolla.java | 10 + .../UpdateConnectionRequestContentEmail.java | 10 + ...pdateConnectionRequestContentEvernote.java | 10 + ...nnectionRequestContentEvernoteSandbox.java | 10 + .../UpdateConnectionRequestContentExact.java | 10 + ...pdateConnectionRequestContentFacebook.java | 10 + .../UpdateConnectionRequestContentFitbit.java | 10 + .../UpdateConnectionRequestContentFlickr.java | 10 + .../UpdateConnectionRequestContentGitHub.java | 10 + ...ateConnectionRequestContentGoogleApps.java | 10 + ...eConnectionRequestContentGoogleOAuth2.java | 10 + ...dateConnectionRequestContentInstagram.java | 10 + .../UpdateConnectionRequestContentIp.java | 10 + .../UpdateConnectionRequestContentLine.java | 10 + ...pdateConnectionRequestContentLinkedin.java | 10 + ...UpdateConnectionRequestContentMiicard.java | 10 + .../UpdateConnectionRequestContentOAuth1.java | 10 + .../UpdateConnectionRequestContentOAuth2.java | 10 + ...dateConnectionRequestContentOffice365.java | 10 + .../UpdateConnectionRequestContentOidc.java | 10 + .../UpdateConnectionRequestContentOkta.java | 10 + .../UpdateConnectionRequestContentPaypal.java | 10 + ...ConnectionRequestContentPaypalSandbox.java | 10 + ...eConnectionRequestContentPingFederate.java | 10 + ...onnectionRequestContentPlanningCenter.java | 10 + .../UpdateConnectionRequestContentRenren.java | 10 + ...ateConnectionRequestContentSalesforce.java | 10 + ...tionRequestContentSalesforceCommunity.java | 10 + ...ectionRequestContentSalesforceSandbox.java | 10 + .../UpdateConnectionRequestContentSaml.java | 10 + ...ateConnectionRequestContentSharepoint.java | 10 + .../UpdateConnectionRequestContentShop.java | 10 + ...UpdateConnectionRequestContentShopify.java | 10 + .../UpdateConnectionRequestContentSms.java | 10 + ...ateConnectionRequestContentSoundcloud.java | 10 + ...ctionRequestContentThirtySevenSignals.java | 10 + ...UpdateConnectionRequestContentTwitter.java | 10 + ...UpdateConnectionRequestContentUntappd.java | 10 + ...dateConnectionRequestContentVkontakte.java | 10 + .../UpdateConnectionRequestContentWeibo.java | 10 + ...teConnectionRequestContentWindowsLive.java | 10 + ...dateConnectionRequestContentWordpress.java | 10 + .../UpdateConnectionRequestContentYahoo.java | 10 + .../UpdateConnectionRequestContentYammer.java | 10 + .../UpdateConnectionRequestContentYandex.java | 10 + .../UpdateConnectionResponseContent.java | 10 + .../UpdateCustomDomainRequestContent.java | 10 + .../UpdateCustomDomainResponseContent.java | 16 + ...teDirectoryProvisioningRequestContent.java | 10 + ...eDirectoryProvisioningResponseContent.java | 16 + .../UpdateEmailProviderResponseContent.java | 10 + .../UpdateEmailTemplateRequestContent.java | 10 + .../UpdateEmailTemplateResponseContent.java | 10 + ...edClientConnectionsRequestContentItem.java | 16 + .../UpdateEventStreamRequestContent.java | 10 + .../mgmt/types/UpdateFlowRequestContent.java | 10 + .../mgmt/types/UpdateFlowResponseContent.java | 16 + ...teFlowsVaultConnectionResponseContent.java | 16 + .../mgmt/types/UpdateFormRequestContent.java | 10 + .../mgmt/types/UpdateFormResponseContent.java | 16 + ...rdianFactorDuoSettingsResponseContent.java | 10 + ...erPushNotificationApnsResponseContent.java | 10 + ...derPushNotificationSnsResponseContent.java | 10 + .../mgmt/types/UpdateHookRequestContent.java | 10 + .../mgmt/types/UpdateHookResponseContent.java | 10 + .../types/UpdateLogStreamRequestContent.java | 10 + .../types/UpdateNetworkAclRequestContent.java | 10 + .../UpdateNetworkAclResponseContent.java | 10 + ...OrganizationConnectionResponseContent.java | 10 + ...izationDiscoveryDomainResponseContent.java | 16 + .../UpdateOrganizationRequestContent.java | 10 + .../UpdateOrganizationResponseContent.java | 10 + .../UpdatePhoneTemplateResponseContent.java | 16 + .../UpdateRefreshTokenRequestContent.java | 10 + .../UpdateRefreshTokenResponseContent.java | 10 + .../UpdateResourceServerRequestContent.java | 10 + .../UpdateResourceServerResponseContent.java | 10 + ...mentsSettingsNewDeviceResponseContent.java | 16 + ...iskAssessmentsSettingsResponseContent.java | 16 + .../mgmt/types/UpdateRoleRequestContent.java | 10 + .../mgmt/types/UpdateRoleResponseContent.java | 10 + .../mgmt/types/UpdateRuleRequestContent.java | 10 + .../mgmt/types/UpdateRuleResponseContent.java | 10 + ...pdateScimConfigurationResponseContent.java | 10 + ...pdateSelfServiceProfileRequestContent.java | 14 +- ...dateSelfServiceProfileResponseContent.java | 14 +- .../types/UpdateSessionRequestContent.java | 10 + .../types/UpdateSessionResponseContent.java | 10 + .../types/UpdateSettingsRequestContent.java | 10 + .../types/UpdateSettingsResponseContent.java | 10 + ...dateSupplementalSignalsRequestContent.java | 16 + ...usIpThrottlingSettingsResponseContent.java | 14 +- .../UpdateTenantSettingsResponseContent.java | 10 + ...ateTokenExchangeProfileRequestContent.java | 10 + .../client/mgmt/types/UpdateTokenQuota.java | 16 + ...alLoginTemplateRequestContentTemplate.java | 16 + ...ateUserAttributeProfileRequestContent.java | 10 + ...teUserAttributeProfileResponseContent.java | 10 + ...erAuthenticationMethodResponseContent.java | 16 + .../mgmt/types/UpdateUserRequestContent.java | 10 + .../mgmt/types/UpdateUserResponseContent.java | 14 +- ...ableCredentialTemplateResponseContent.java | 10 + .../mgmt/types/UserAttributeProfile.java | 10 + .../UserAttributeProfileOidcMapping.java | 16 + ...UserAttributeProfileStrategyOverrides.java | 10 + ...ributeProfileStrategyOverridesMapping.java | 10 + ...tributeProfileStrategyOverridesUserId.java | 10 + ...ProfileStrategyOverridesUserIdMapping.java | 10 + .../types/UserAttributeProfileTemplate.java | 10 + .../UserAttributeProfileTemplateItem.java | 10 + ...fileUserAttributeAdditionalProperties.java | 16 + .../types/UserAttributeProfileUserId.java | 10 + .../mgmt/types/UserAuthenticationMethod.java | 16 + .../UserAuthenticationMethodProperties.java | 10 + .../mgmt/types/UserBlockIdentifier.java | 10 + .../auth0/client/mgmt/types/UserGrant.java | 10 + .../mgmt/types/UserGroupsResponseSchema.java | 10 + .../auth0/client/mgmt/types/UserIdentity.java | 16 + .../client/mgmt/types/UserIdentitySchema.java | 10 + ...ListLogOffsetPaginatedResponseContent.java | 10 + .../mgmt/types/UserPermissionSchema.java | 10 + .../client/mgmt/types/UserProfileData.java | 10 + .../client/mgmt/types/UserResponseSchema.java | 14 +- .../mgmt/types/UsernameAllowedTypes.java | 10 + .../client/mgmt/types/UsernameAttribute.java | 10 + .../client/mgmt/types/UsernameValidation.java | 10 + .../client/mgmt/types/UsersEnrollment.java | 10 + .../VerifiableCredentialTemplateResponse.java | 10 + .../VerifyCustomDomainResponseContent.java | 16 + .../VerifyEmailTicketRequestContent.java | 24 +- .../VerifyEmailTicketResponseContent.java | 16 + .../mgmt/types/X509CertificateCredential.java | 16 + .../AsyncAuthenticationMethodsClient.java | 34 +- .../mgmt/users/AsyncAuthenticatorsClient.java | 4 +- .../users/AsyncConnectedAccountsClient.java | 7 + .../mgmt/users/AsyncEnrollmentsClient.java | 4 +- .../client/mgmt/users/AsyncGroupsClient.java | 8 + .../mgmt/users/AsyncIdentitiesClient.java | 108 +- .../client/mgmt/users/AsyncLogsClient.java | 28 +- .../mgmt/users/AsyncMultifactorClient.java | 8 +- .../mgmt/users/AsyncOrganizationsClient.java | 13 +- .../mgmt/users/AsyncPermissionsClient.java | 7 + .../AsyncRawAuthenticationMethodsClient.java | 115 +- .../users/AsyncRawAuthenticatorsClient.java | 16 +- .../AsyncRawConnectedAccountsClient.java | 13 + .../mgmt/users/AsyncRawEnrollmentsClient.java | 16 +- ...awFederatedConnectionsTokensetsClient.java | 24 +- .../mgmt/users/AsyncRawGroupsClient.java | 13 + .../mgmt/users/AsyncRawIdentitiesClient.java | 133 +- .../client/mgmt/users/AsyncRawLogsClient.java | 34 +- .../mgmt/users/AsyncRawMultifactorClient.java | 32 +- .../users/AsyncRawOrganizationsClient.java | 19 +- .../mgmt/users/AsyncRawPermissionsClient.java | 37 +- .../users/AsyncRawRefreshTokenClient.java | 25 +- .../users/AsyncRawRiskAssessmentsClient.java | 12 +- .../mgmt/users/AsyncRawRolesClient.java | 56 +- .../mgmt/users/AsyncRawSessionsClient.java | 25 +- .../mgmt/users/AsyncRefreshTokenClient.java | 8 + .../client/mgmt/users/AsyncRolesClient.java | 26 +- .../mgmt/users/AsyncSessionsClient.java | 8 + .../users/AuthenticationMethodsClient.java | 33 +- .../mgmt/users/AuthenticatorsClient.java | 4 +- .../mgmt/users/ConnectedAccountsClient.java | 7 + .../client/mgmt/users/EnrollmentsClient.java | 4 +- .../auth0/client/mgmt/users/GroupsClient.java | 7 + .../client/mgmt/users/IdentitiesClient.java | 108 +- .../auth0/client/mgmt/users/LogsClient.java | 28 +- .../client/mgmt/users/MultifactorClient.java | 8 +- .../mgmt/users/OrganizationsClient.java | 13 +- .../client/mgmt/users/PermissionsClient.java | 7 + .../users/RawAuthenticationMethodsClient.java | 115 +- .../mgmt/users/RawAuthenticatorsClient.java | 16 +- .../users/RawConnectedAccountsClient.java | 13 + .../mgmt/users/RawEnrollmentsClient.java | 16 +- ...awFederatedConnectionsTokensetsClient.java | 24 +- .../client/mgmt/users/RawGroupsClient.java | 13 + .../mgmt/users/RawIdentitiesClient.java | 132 +- .../client/mgmt/users/RawLogsClient.java | 33 +- .../mgmt/users/RawMultifactorClient.java | 32 +- .../mgmt/users/RawOrganizationsClient.java | 18 +- .../mgmt/users/RawPermissionsClient.java | 37 +- .../mgmt/users/RawRefreshTokenClient.java | 25 +- .../mgmt/users/RawRiskAssessmentsClient.java | 12 +- .../client/mgmt/users/RawRolesClient.java | 55 +- .../client/mgmt/users/RawSessionsClient.java | 25 +- .../client/mgmt/users/RefreshTokenClient.java | 7 + .../auth0/client/mgmt/users/RolesClient.java | 26 +- .../client/mgmt/users/SessionsClient.java | 7 + .../types/AssignUserRolesRequestContent.java | 10 + .../types/ClearAssessorsRequestContent.java | 16 + ...serAuthenticationMethodRequestContent.java | 16 + .../CreateUserPermissionsRequestContent.java | 10 + .../DeleteUserPermissionsRequestContent.java | 10 + .../types/DeleteUserRolesRequestContent.java | 10 + ...serConnectedAccountsRequestParameters.java | 10 + .../types/GetUserGroupsRequestParameters.java | 10 + .../types/LinkUserIdentityRequestContent.java | 10 + .../ListRefreshTokensRequestParameters.java | 10 + ...uthenticationMethodsRequestParameters.java | 10 + .../types/ListUserLogsRequestParameters.java | 10 + ...istUserOrganizationsRequestParameters.java | 10 + .../ListUserPermissionsRequestParameters.java | 10 + .../types/ListUserRolesRequestParameters.java | 10 + .../ListUserSessionsRequestParameters.java | 10 + ...serAuthenticationMethodRequestContent.java | 10 + .../verification/AsyncRawTemplatesClient.java | 70 +- .../verification/AsyncTemplatesClient.java | 16 + .../verification/RawTemplatesClient.java | 70 +- .../verification/TemplatesClient.java | 14 + ...iableCredentialTemplateRequestContent.java | 16 + ...eCredentialTemplatesRequestParameters.java | 10 + ...iableCredentialTemplateRequestContent.java | 10 + .../client/mgmt/ActionsVersionsWireTest.java | 162 +- .../auth0/client/mgmt/ActionsWireTest.java | 476 +----- .../client/mgmt/BrandingThemesWireTest.java | 507 +----- .../auth0/client/mgmt/ClientsWireTest.java | 1447 +---------------- .../mgmt/ConnectionProfilesWireTest.java | 197 +-- .../com/auth0/client/mgmt/FormsWireTest.java | 234 +-- .../client/mgmt/NetworkAclsWireTest.java | 243 +-- .../com/auth0/client/mgmt/StreamTest.java | 23 + .../client/mgmt/TenantsSettingsWireTest.java | 228 +-- .../com/auth0/client/mgmt/TestResources.java | 36 + 1839 files changed, 36204 insertions(+), 11569 deletions(-) create mode 100644 src/main/java/com/auth0/client/mgmt/core/SseEvent.java create mode 100644 src/main/java/com/auth0/client/mgmt/core/SseEventParser.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionSignatureMethodOAuth1.java create mode 100644 src/test/java/com/auth0/client/mgmt/TestResources.java diff --git a/reference.md b/reference.md index 34677d5d..b5155fec 100644 --- a/reference.md +++ b/reference.md @@ -2149,7 +2149,7 @@ client.clients().update(
-**allowedLogoutUrls:** `Optional>` — URLs that are valid to redirect to after logout from Auth0. +**allowedLogoutUrls:** `Optional>` — URLs that are valid to redirect to after logout from Auth0
@@ -10551,7 +10551,7 @@ client.selfServiceProfiles().create(
-**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`] +**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
@@ -10766,7 +10766,7 @@ client.selfServiceProfiles().update(
-**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`] +**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
diff --git a/src/main/java/com/auth0/client/mgmt/ActionsClient.java b/src/main/java/com/auth0/client/mgmt/ActionsClient.java index df141d3e..e1faa52c 100644 --- a/src/main/java/com/auth0/client/mgmt/ActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ActionsClient.java @@ -60,6 +60,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve all actions. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve all actions. */ @@ -109,6 +116,13 @@ public void delete(String id) { this.rawClient.delete(id).body(); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public void delete(String id, RequestOptions requestOptions) { + this.rawClient.delete(id, requestOptions).body(); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -124,21 +138,28 @@ public void delete(String id, DeleteActionRequestParameters request, RequestOpti } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public UpdateActionResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public UpdateActionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public UpdateActionResponseContent update(String id, UpdateActionRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public UpdateActionResponseContent update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java index 2227df52..2bf5bcd7 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java @@ -61,6 +61,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve all actions. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all actions. */ @@ -112,6 +119,13 @@ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public CompletableFuture delete(String id, RequestOptions requestOptions) { + return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -128,21 +142,28 @@ public CompletableFuture delete( } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture update(String id, UpdateActionRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java b/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java index 410492bb..8e588b76 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java @@ -62,6 +62,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update branding settings. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update branding settings. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java index 68800ba2..62813ccd 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java @@ -39,14 +39,21 @@ public AsyncRawClientGrantsClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture> list( ListClientGrantsRequestParameters request) { @@ -54,7 +61,7 @@ public CompletableFuture> list( } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture> list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -62,14 +69,14 @@ public CompletableFuture> list( } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CompletableFuture create(CreateClientGrantRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CompletableFuture create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { @@ -77,7 +84,7 @@ public CompletableFuture create( } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public CompletableFuture get(String id) { @@ -85,7 +92,7 @@ public CompletableFuture get(String id) { } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public CompletableFuture get(String id, RequestOptions requestOptions) { @@ -93,14 +100,14 @@ public CompletableFuture get(String id, RequestOp } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); @@ -113,6 +120,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update a client grant. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update a client grant. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java index 24bec461..1d8b332b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java @@ -46,37 +46,37 @@ public AsyncRawClientsClient withRawResponse() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Notes:

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

Notes:

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

Notes:

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

Notes:

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

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

- *

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

+ *

For more information, read Rotate Client Secrets.

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

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

- *

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

+ *

For more information, read Rotate Client Secrets.

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

This endpoint supports two types of pagination:

- *

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

+ *

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

*

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

- *

<h2>Checkpoint Pagination</h2>

+ *

Checkpoint Pagination

*

To search by checkpoint, use the following parameters:

- *

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

- *

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

+ *

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

+ *

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

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

This endpoint supports two types of pagination:

- *

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

+ *

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

*

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

- *

<h2>Checkpoint Pagination</h2>

+ *

Checkpoint Pagination

*

To search by checkpoint, use the following parameters:

- *

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

- *

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

+ *

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

+ *

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

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

This endpoint supports two types of pagination:

+ *

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

+ *

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

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *

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

+ *

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

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

This endpoint supports two types of pagination:

- *

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

+ *

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

*

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

- *

<h2>Checkpoint Pagination</h2>

+ *

Checkpoint Pagination

*

To search by checkpoint, use the following parameters:

- *

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

- *

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

+ *

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

+ *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    - *

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

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

    + *

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

    *

    TLS Policies:

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

      Some considerations:

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

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

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

    + *

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

    + *

    TLS Policies:

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

    Some considerations:

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

    These are the attributes that can be updated:

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

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

    - *

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

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

    + *

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

    *

    TLS Policies:

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

      Some considerations:

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

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

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

    - *

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

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

    + *

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

    *

    TLS Policies:

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

      Some considerations:

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

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

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

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

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

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

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

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

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

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

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

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

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

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

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

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

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

      + * }]

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

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

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

      + * }]

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

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

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

      + * }

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

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

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

      + * }

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

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

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

      - *

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

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

      }

      Mixpanel

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

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

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

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

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

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

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

      - *

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

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

      }

      Mixpanel

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

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

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

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

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

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

      Examples of how to use the PATCH endpoint.

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

      + * }

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

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

      Examples of how to use the PATCH endpoint.

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

      + * }

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

      Examples of how to use the PATCH endpoint.

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

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

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

      Examples of how to use the PATCH endpoint.

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

      + * }

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

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      + *

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

      + *

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

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

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

      + *

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

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

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

      + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Notes:

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

      Notes:

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

      Notes:

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

      Notes:

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

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

      - *

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

      + *

      For more information, read Rotate Client Secrets.

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

      - *

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

      + *

      For more information, read Rotate Client Secrets.

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

      This endpoint supports two types of pagination:

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      + *

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

      + *

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

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    - *

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

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

    + *

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

    *

    TLS Policies:

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

      Some considerations:

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

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

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

    - *

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

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

    + *

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

    *

    TLS Policies:

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

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

      These are the attributes that can be updated:

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

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

      + *

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

      + *

      TLS Policies:

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

      Some considerations:

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

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

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

    - *

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

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

    + *

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

    *

    TLS Policies:

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

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

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

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

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

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

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

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

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

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

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

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

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

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

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

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

      + * }]

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

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

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

      + * }]

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

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

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

      + * }

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

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

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

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

      - *

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

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

      }

      Mixpanel

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

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

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

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

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

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

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

      - *

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

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

      }

      Mixpanel

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

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

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

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

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

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

      Examples of how to use the PATCH endpoint.

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

      + * }

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

      Examples of how to use the PATCH endpoint.

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

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

      Examples of how to use the PATCH endpoint.

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

      + * }

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

      Examples of how to use the PATCH endpoint.

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

      + * }

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      - *

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

      + *

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

      + *

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

      + *

      To set custom search criteria, use the following parameters:

      + *

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

      + *

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

      + *

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

      + *

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

      + *

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

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

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

      This endpoint supports two types of pagination:

      + *

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

      + *

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

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

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

      + *

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

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

      - *

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

      + *

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

      *

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

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

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

      - *

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

      + *

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

      + *

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

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

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

      + *

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

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

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

      + *

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

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

      + *

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

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

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

      + *

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

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

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

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

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

      + *

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

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

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

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

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

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

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

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

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

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

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

      + * Create a new rule. + *

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

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

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

      + * Create a new rule. + *

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

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

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

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

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

      + *

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

      *

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

      - *

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

      - *

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

      + *

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

      + *

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

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

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

      + *

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

      *

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

      - *

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

      - *

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

      + *

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

      + *

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

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

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

      + *

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

      + *

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

      + *

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

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

      + *

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

      *

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

      - *

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

      - *

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

      + *

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

      + *

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

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

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

      + *

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

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

      + *

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

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

      + *

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

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

      + *

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

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

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

      + *

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

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

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

      + *

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

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

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

      + *

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

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

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

      + *

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

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

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

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

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

      + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    <!-- only v3 is available -->

    - *

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

    - *

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

    - *

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

    - *

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

    + *

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

    + *

    Learn more about searching for users.

    + *

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

    + *

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

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

    <!-- only v3 is available -->

    - *

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

    - *

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

    - *

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

    - *

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

    + *

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

    + *

    Learn more about searching for users.

    + *

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

    + *

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

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

    <!-- only v3 is available -->

    + *

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

    + *

    Learn more about searching for users.

    + *

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

    + *

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

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

    <!-- only v3 is available -->

    - *

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

    - *

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

    - *

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

    - *

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

    + *

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

    + *

    Learn more about searching for users.

    + *

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

    + *

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

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

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

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

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

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

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

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

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

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

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

    - *

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

    + *

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

    *

    Some considerations:

    - *

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

    - *

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

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

    + *

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

    - *

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

    - *

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

    - *

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

    - *

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

    { "email_verified": true }

    + *

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

    + *

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

    + *

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

    + *

    The modified object ends up with the following user_metadata property:

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

    - *

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

    + *

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

    - *

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

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

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

    + * }

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

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

    - *

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

    + *

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

    + *

    Some considerations:

    + *

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

    + *

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

    + *

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

    + *

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

    + *

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

    + *

    The modified object ends up with the following user_metadata property:

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

    + *

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

    + *

    The modified object ends up with the following user_metadata property:

    + *

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

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

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

    + *

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

    *

    Some considerations:

    - *

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

    - *

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

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

    + *

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

    - *

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

    - *

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

    - *

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

    - *

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

    { "email_verified": true }

    + *

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

    + *

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

    + *

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

    + *

    The modified object ends up with the following user_metadata property:

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

    - *

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

    + *

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

    - *

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

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

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

    + * }

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

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

    - *

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

    + *

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

    *

    Some considerations:

    - *

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

    - *

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

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

    + *

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

    - *

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

    - *

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

    - *

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

    - *

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

    { "email_verified": true }

    + *

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

    + *

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

    + *

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

    + *

    The modified object ends up with the following user_metadata property:

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

    - *

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

    + *

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

    - *

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

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

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

    + * }

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

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

    + *

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

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

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

    + *

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

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

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

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

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

    + *

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

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

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

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

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

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

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

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

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

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

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

    + * Create a new rule. + *

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

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

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

    + * Create a new rule. + *

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

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

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

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

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

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

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

    + *

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

    *

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

    - *

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

    - *

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

    + *

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

    + *

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

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

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

    + *

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

    *

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

    - *

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

    - *

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

    + *

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

    + *

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

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

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

    + *

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

    + *

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

    + *

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

    */ public CompletableFuture> list( TokenExchangeProfilesListRequest request) { @@ -62,13 +77,13 @@ public CompletableFuture /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

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

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -77,7 +92,7 @@ public CompletableFuture /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture create( CreateTokenExchangeProfileRequestContent request) { @@ -86,7 +101,7 @@ public CompletableFuture create( /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { @@ -95,7 +110,7 @@ public CompletableFuture create( /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); @@ -103,7 +118,7 @@ public CompletableFuture get(String id) /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -111,7 +126,7 @@ public CompletableFuture get(String id, /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); @@ -119,7 +134,7 @@ public CompletableFuture delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); @@ -127,7 +142,7 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); @@ -135,7 +150,15 @@ public CompletableFuture update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture update(String id, UpdateTokenExchangeProfileRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); @@ -143,7 +166,7 @@ public CompletableFuture update(String id, UpdateTokenExchangeProfileReque /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture update( String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java index 2400c905..6beec990 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java @@ -41,6 +41,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -138,6 +145,14 @@ public CompletableFuture update(Strin return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java index 1b1c7b9d..3e4373cf 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java @@ -30,7 +30,7 @@ public AsyncRawUserBlocksClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public CompletableFuture listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -38,7 +38,7 @@ public CompletableFuture listByIdenti } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public CompletableFuture listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -46,16 +46,16 @@ public CompletableFuture listByIdenti } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture deleteByIdentifier(DeleteUserBlocksByIdentifierRequestParameters request) { return this.rawClient.deleteByIdentifier(request).thenApply(response -> response.body()); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -63,21 +63,28 @@ public CompletableFuture deleteByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public CompletableFuture list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture list(String id, ListUserBlocksRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -85,16 +92,16 @@ public CompletableFuture list( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java index 3a3e21bf..a8d4dbff 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java @@ -29,21 +29,28 @@ public AsyncRawUserGrantsClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve the grants associated with your account. */ public CompletableFuture> list(ListUserGrantsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public CompletableFuture> list( ListUserGrantsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java index 0c30ca45..38eb2359 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java @@ -109,10 +109,10 @@ public AsyncRawUsersClient withRawResponse() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -127,10 +127,28 @@ public CompletableFuture> list() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture> list(ListUsersRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -145,10 +163,10 @@ public CompletableFuture> list(ListUsersR *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture> list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -156,16 +174,16 @@ public CompletableFuture> list( } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CompletableFuture create(CreateUserRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CompletableFuture create( CreateUserRequestContent request, RequestOptions requestOptions) { @@ -192,21 +210,28 @@ public CompletableFuture> listUsersByEmail( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture get(String id, GetUserRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture get( String id, GetUserRequestParameters request, RequestOptions requestOptions) { @@ -214,14 +239,14 @@ public CompletableFuture get( } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); @@ -230,57 +255,57 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -288,7 +313,7 @@ public CompletableFuture delete(String id, RequestOptions requestOptions)
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); @@ -297,57 +322,124 @@ public CompletableFuture update(String id) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -355,7 +447,7 @@ public CompletableFuture update(String id) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture update(String id, UpdateUserRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); @@ -364,57 +456,57 @@ public CompletableFuture update(String id, UpdateUser /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -422,7 +514,7 @@ public CompletableFuture update(String id, UpdateUser
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { @@ -430,14 +522,14 @@ public CompletableFuture update( } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public CompletableFuture regenerateRecoveryCode(String id) { return this.rawClient.regenerateRecoveryCode(id).thenApply(response -> response.body()); } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public CompletableFuture regenerateRecoveryCode( String id, RequestOptions requestOptions) { @@ -451,6 +543,13 @@ public CompletableFuture revokeAccess(String id) { return this.rawClient.revokeAccess(id).thenApply(response -> response.body()); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public CompletableFuture revokeAccess(String id, RequestOptions requestOptions) { + return this.rawClient.revokeAccess(id, requestOptions).thenApply(response -> response.body()); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ diff --git a/src/main/java/com/auth0/client/mgmt/BrandingClient.java b/src/main/java/com/auth0/client/mgmt/BrandingClient.java index 90b5792f..43c847e2 100644 --- a/src/main/java/com/auth0/client/mgmt/BrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/BrandingClient.java @@ -61,6 +61,13 @@ public UpdateBrandingResponseContent update() { return this.rawClient.update().body(); } + /** + * Update branding settings. + */ + public UpdateBrandingResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update branding settings. */ diff --git a/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java index f96e4275..093806a1 100644 --- a/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java @@ -38,21 +38,28 @@ public RawClientGrantsClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public SyncPagingIterable list(ListClientGrantsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public SyncPagingIterable list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -60,14 +67,14 @@ public SyncPagingIterable list( } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CreateClientGrantResponseContent create(CreateClientGrantRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CreateClientGrantResponseContent create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { @@ -75,7 +82,7 @@ public CreateClientGrantResponseContent create( } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public GetClientGrantResponseContent get(String id) { @@ -83,7 +90,7 @@ public GetClientGrantResponseContent get(String id) { } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public GetClientGrantResponseContent get(String id, RequestOptions requestOptions) { @@ -91,14 +98,14 @@ public GetClientGrantResponseContent get(String id, RequestOptions requestOption } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); @@ -111,6 +118,13 @@ public UpdateClientGrantResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update a client grant. + */ + public UpdateClientGrantResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update a client grant. */ diff --git a/src/main/java/com/auth0/client/mgmt/ClientsClient.java b/src/main/java/com/auth0/client/mgmt/ClientsClient.java index 2e8759ea..56c76c36 100644 --- a/src/main/java/com/auth0/client/mgmt/ClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ClientsClient.java @@ -45,37 +45,37 @@ public RawClientsClient withRawResponse() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -83,37 +83,75 @@ public SyncPagingIterable list() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • + * The following can be retrieved with any scope: + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public SyncPagingIterable list(ListClientsRequestParameters request) { return this.rawClient.list(request).body(); @@ -121,77 +159,77 @@ public SyncPagingIterable list(ListClientsRequestParameters request) { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public SyncPagingIterable list(ListClientsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

    */ public CreateClientResponseContent create(CreateClientRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read
    Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

    */ public CreateClientResponseContent create(CreateClientRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); @@ -199,36 +237,36 @@ public CreateClientResponseContent create(CreateClientRequestContent request, Re /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public GetClientResponseContent get(String id) { return this.rawClient.get(id).body(); @@ -236,36 +274,73 @@ public GetClientResponseContent get(String id) { /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    + */ + public GetClientResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • + * The following properties can be retrieved with any of the scopes: + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public GetClientResponseContent get(String id, GetClientRequestParameters request) { return this.rawClient.get(id, request).body(); @@ -273,36 +348,36 @@ public GetClientResponseContent get(String id, GetClientRequestParameters reques /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public GetClientResponseContent get(String id, GetClientRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); @@ -323,15 +398,15 @@ public void delete(String id, RequestOptions requestOptions) { } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

    Notes:

    *
      *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • - *
    • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
    • - *
    • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • - *
    • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
    • - *
    • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
    • - *
    • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • *
    */ public UpdateClientResponseContent update(String id) { @@ -339,15 +414,31 @@ public UpdateClientResponseContent update(String id) { } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. + *

    Notes:

    + *
      + *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • + *
    + */ + public UpdateClientResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

    Notes:

    *
      *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • - *
    • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
    • - *
    • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • - *
    • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
    • - *
    • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
    • - *
    • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • *
    */ public UpdateClientResponseContent update(String id, UpdateClientRequestContent request) { @@ -355,15 +446,15 @@ public UpdateClientResponseContent update(String id, UpdateClientRequestContent } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

    Notes:

    *
      *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • - *
    • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
    • - *
    • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • - *
    • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
    • - *
    • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
    • - *
    • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • *
    */ public UpdateClientResponseContent update( @@ -374,7 +465,7 @@ public UpdateClientResponseContent update( /** * Rotate a client secret. *

    This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

    - *

    For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

    + *

    For more information, read Rotate Client Secrets.

    */ public RotateClientSecretResponseContent rotateSecret(String id) { return this.rawClient.rotateSecret(id).body(); @@ -383,7 +474,7 @@ public RotateClientSecretResponseContent rotateSecret(String id) { /** * Rotate a client secret. *

    This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

    - *

    For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

    + *

    For more information, read Rotate Client Secrets.

    */ public RotateClientSecretResponseContent rotateSecret(String id, RequestOptions requestOptions) { return this.rawClient.rotateSecret(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java index 54e4be95..76826490 100644 --- a/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. */ @@ -133,6 +140,13 @@ public UpdateConnectionProfileResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update the details of a specific Connection Profile. + */ + public UpdateConnectionProfileResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update the details of a specific Connection Profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java index 999adfd8..c2c3897b 100644 --- a/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java @@ -55,60 +55,80 @@ public RawConnectionsClient withRawResponse() { } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(ListConnectionsQueryParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list( ListConnectionsQueryParameters request, RequestOptions requestOptions) { @@ -116,16 +136,16 @@ public SyncPagingIterable list( } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

    <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    + * Creates a new connection according to the JSON object received in body. + *

    Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    */ public CreateConnectionResponseContent create(CreateConnectionRequestContent request) { return this.rawClient.create(request).body(); } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

    <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    + * Creates a new connection according to the JSON object received in body. + *

    Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    */ public CreateConnectionResponseContent create( CreateConnectionRequestContent request, RequestOptions requestOptions) { @@ -133,21 +153,28 @@ public CreateConnectionResponseContent create( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public GetConnectionResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. + */ + public GetConnectionResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public GetConnectionResponseContent get(String id, GetConnectionRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public GetConnectionResponseContent get( String id, GetConnectionRequestParameters request, RequestOptions requestOptions) { @@ -155,40 +182,48 @@ public GetConnectionResponseContent get( } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

    <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

    + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

    Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

    */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

    <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

    + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

    Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

    */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

    <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    */ public UpdateConnectionResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

    <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + */ + public UpdateConnectionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    */ public UpdateConnectionResponseContent update(String id, UpdateConnectionRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

    <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    */ public UpdateConnectionResponseContent update( String id, UpdateConnectionRequestContent request, RequestOptions requestOptions) { @@ -196,14 +231,14 @@ public UpdateConnectionResponseContent update( } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public void checkStatus(String id) { this.rawClient.checkStatus(id).body(); } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public void checkStatus(String id, RequestOptions requestOptions) { this.rawClient.checkStatus(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java index c91dcdba..304cb722 100644 --- a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java @@ -34,21 +34,28 @@ public RawCustomDomainsClient withRawResponse() { } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. + */ + public List list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve details on custom domains. */ public List list(ListCustomDomainsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public List list(ListCustomDomainsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); @@ -126,11 +133,11 @@ public void delete(String id, RequestOptions requestOptions) { *
  • custom_client_ip_header
  • *
  • tls_policy
  • * - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -138,7 +145,7 @@ public void delete(String id, RequestOptions requestOptions) { *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public UpdateCustomDomainResponseContent update(String id) { @@ -152,11 +159,37 @@ public UpdateCustomDomainResponseContent update(String id) { *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to + * send should be: + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    + *

    TLS Policies:

    + *
      + *
    • recommended - for modern usage this includes TLS 1.2 only
    • + *
    + *

    Some considerations:

    + *
      + *
    • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
    • + *
    • The compatible TLS policy is no longer supported.
    • + *
    + */ + public UpdateCustomDomainResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a custom domain. + *

    These are the attributes that can be updated:

    + *
      + *
    • custom_client_ip_header
    • + *
    • tls_policy
    • + *
    + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -164,7 +197,7 @@ public UpdateCustomDomainResponseContent update(String id) { *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public UpdateCustomDomainResponseContent update(String id, UpdateCustomDomainRequestContent request) { @@ -178,11 +211,11 @@ public UpdateCustomDomainResponseContent update(String id, UpdateCustomDomainReq *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -190,7 +223,7 @@ public UpdateCustomDomainResponseContent update(String id, UpdateCustomDomainReq *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public UpdateCustomDomainResponseContent update( @@ -214,10 +247,10 @@ public TestCustomDomainResponseContent test(String id, RequestOptions requestOpt /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public VerifyCustomDomainResponseContent verify(String id) { return this.rawClient.verify(id).body(); @@ -225,10 +258,10 @@ public VerifyCustomDomainResponseContent verify(String id) { /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public VerifyCustomDomainResponseContent verify(String id, RequestOptions requestOptions) { return this.rawClient.verify(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java index 7bca7c73..d98987a2 100644 --- a/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java @@ -29,21 +29,28 @@ public RawDeviceCredentialsClient withRawResponse() { } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public SyncPagingIterable list(ListDeviceCredentialsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public SyncPagingIterable list( ListDeviceCredentialsRequestParameters request, RequestOptions requestOptions) { @@ -51,8 +58,8 @@ public SyncPagingIterable list( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CreatePublicKeyDeviceCredentialResponseContent createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request) { @@ -60,8 +67,8 @@ public CreatePublicKeyDeviceCredentialResponseContent createPublicKey( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CreatePublicKeyDeviceCredentialResponseContent createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java index cda13918..0bf8b577 100644 --- a/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java @@ -83,6 +83,14 @@ public UpdateEmailTemplateResponseContent update(EmailTemplateNameEnum templateN return this.rawClient.update(templateName).body(); } + /** + * Modify an email template. + */ + public UpdateEmailTemplateResponseContent update( + EmailTemplateNameEnum templateName, RequestOptions requestOptions) { + return this.rawClient.update(templateName, requestOptions).body(); + } + /** * Modify an email template. */ diff --git a/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java index a74aa944..f830c7e5 100644 --- a/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java @@ -47,6 +47,10 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListEventStreamsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -84,6 +88,10 @@ public UpdateEventStreamResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateEventStreamResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateEventStreamResponseContent update(String id, UpdateEventStreamRequestContent request) { return this.rawClient.update(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/FlowsClient.java b/src/main/java/com/auth0/client/mgmt/FlowsClient.java index 63b8fc6b..38c4550e 100644 --- a/src/main/java/com/auth0/client/mgmt/FlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/FlowsClient.java @@ -46,6 +46,10 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListFlowsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -66,6 +70,10 @@ public GetFlowResponseContent get(String id) { return this.rawClient.get(id).body(); } + public GetFlowResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + public GetFlowResponseContent get(String id, GetFlowRequestParameters request) { return this.rawClient.get(id, request).body(); } @@ -86,6 +94,10 @@ public UpdateFlowResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateFlowResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateFlowResponseContent update(String id, UpdateFlowRequestContent request) { return this.rawClient.update(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/FormsClient.java b/src/main/java/com/auth0/client/mgmt/FormsClient.java index de9e6b84..a52bc86c 100644 --- a/src/main/java/com/auth0/client/mgmt/FormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/FormsClient.java @@ -36,6 +36,10 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListFormsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -56,6 +60,10 @@ public GetFormResponseContent get(String id) { return this.rawClient.get(id).body(); } + public GetFormResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + public GetFormResponseContent get(String id, GetFormRequestParameters request) { return this.rawClient.get(id, request).body(); } @@ -76,6 +84,10 @@ public UpdateFormResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateFormResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateFormResponseContent update(String id, UpdateFormRequestContent request) { return this.rawClient.update(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/GroupsClient.java index b01f8ba9..1f0ced1c 100644 --- a/src/main/java/com/auth0/client/mgmt/GroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/GroupsClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * List all groups in your tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * List all groups in your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/HooksClient.java b/src/main/java/com/auth0/client/mgmt/HooksClient.java index 523dee18..519fad43 100644 --- a/src/main/java/com/auth0/client/mgmt/HooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/HooksClient.java @@ -39,21 +39,28 @@ public RawHooksClient withRawResponse() { } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public SyncPagingIterable list(ListHooksRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public SyncPagingIterable list(ListHooksRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); @@ -74,21 +81,28 @@ public CreateHookResponseContent create(CreateHookRequestContent request, Reques } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public GetHookResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. + */ + public GetHookResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public GetHookResponseContent get(String id, GetHookRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public GetHookResponseContent get(String id, GetHookRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); @@ -115,6 +129,13 @@ public UpdateHookResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update an existing hook. + */ + public UpdateHookResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update an existing hook. */ diff --git a/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java index 45907a75..bd64d8e6 100644 --- a/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java @@ -31,8 +31,8 @@ public RawLogStreamsClient withRawResponse() { } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -96,15 +96,15 @@ public RawLogStreamsClient withRawResponse() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -168,7 +168,7 @@ public List list() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public List list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).body(); @@ -176,9 +176,9 @@ public List list(RequestOptions requestOptions) { /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -187,8 +187,8 @@ public List list(RequestOptions requestOptions) {
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -199,17 +199,17 @@ public List list(RequestOptions requestOptions) {
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -219,9 +219,9 @@ public List list(RequestOptions requestOptions) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -229,8 +229,8 @@ public List list(RequestOptions requestOptions) {
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -241,17 +241,17 @@ public List list(RequestOptions requestOptions) {
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -260,9 +260,9 @@ public List list(RequestOptions requestOptions) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -271,8 +271,8 @@ public List list(RequestOptions requestOptions) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -283,16 +283,16 @@ public List list(RequestOptions requestOptions) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -300,7 +300,7 @@ public List list(RequestOptions requestOptions) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent request) { return this.rawClient.create(request).body(); @@ -308,9 +308,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -319,8 +319,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -331,17 +331,17 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -351,9 +351,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -361,8 +361,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -373,17 +373,17 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -392,9 +392,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -403,8 +403,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -415,16 +415,16 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -432,7 +432,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); @@ -440,7 +440,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -450,7 +450,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -461,7 +461,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -470,8 +470,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -480,10 +480,10 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -494,19 +494,19 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -514,9 +514,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -527,7 +527,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -535,10 +535,10 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public GetLogStreamResponseContent get(String id) { return this.rawClient.get(id).body(); @@ -546,7 +546,7 @@ public GetLogStreamResponseContent get(String id) { /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -556,7 +556,7 @@ public GetLogStreamResponseContent get(String id) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -567,7 +567,7 @@ public GetLogStreamResponseContent get(String id) {
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -576,8 +576,8 @@ public GetLogStreamResponseContent get(String id) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -586,10 +586,10 @@ public GetLogStreamResponseContent get(String id) {
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -600,19 +600,19 @@ public GetLogStreamResponseContent get(String id) {
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -620,9 +620,9 @@ public GetLogStreamResponseContent get(String id) {
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -633,7 +633,7 @@ public GetLogStreamResponseContent get(String id) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -641,10 +641,10 @@ public GetLogStreamResponseContent get(String id) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public GetLogStreamResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -666,40 +666,40 @@ public void delete(String id, RequestOptions requestOptions) { /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public UpdateLogStreamResponseContent update(String id) { return this.rawClient.update(id).body(); @@ -707,40 +707,81 @@ public UpdateLogStreamResponseContent update(String id) { /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      + */ + public UpdateLogStreamResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a log stream. + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
      +     * 	"status": "active|paused"
      +     * }
      + *
      Update the name of a log stream
      {
      +     * 	"name": "string"
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
      +     *   "sink": {
      +     *     "httpEndpoint": "string",
      +     *     "httpContentType": "string",
      +     *     "httpContentFormat": "JSONARRAY|JSONLINES",
      +     *     "httpAuthorization": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
      +     *   "sink": {
      +     * 		"datadogRegion": "string",
      +     * 		"datadogApiKey": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
      +     *   "sink": {
      +     *     "splunkDomain": "string",
      +     *     "splunkToken": "string",
      +     *     "splunkPort": "string",
      +     *     "splunkSecure": "boolean"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
      +     *   "sink": {
      +     *     "sumoSourceAddress": "string"
      +     *   }
      +     * }

      */ public UpdateLogStreamResponseContent update(String id, UpdateLogStreamRequestContent request) { return this.rawClient.update(id, request).body(); @@ -748,40 +789,40 @@ public UpdateLogStreamResponseContent update(String id, UpdateLogStreamRequestCo /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public UpdateLogStreamResponseContent update( String id, UpdateLogStreamRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/LogsClient.java b/src/main/java/com/auth0/client/mgmt/LogsClient.java index 4111ffce..e268fda5 100644 --- a/src/main/java/com/auth0/client/mgmt/LogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/LogsClient.java @@ -29,26 +29,26 @@ public RawLogsClient withRawResponse() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -56,26 +56,53 @@ public SyncPagingIterable list() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public SyncPagingIterable list(ListLogsRequestParameters request) { return this.rawClient.list(request).body(); @@ -83,26 +110,26 @@ public SyncPagingIterable list(ListLogsRequestParameters request) { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public SyncPagingIterable list(ListLogsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java index c812f3c3..fe6ce32e 100644 --- a/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Get all access control list entries for your client. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Get all access control list entries for your client. */ @@ -118,6 +125,13 @@ public UpdateNetworkAclResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update existing access control list for your client. + */ + public UpdateNetworkAclResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update existing access control list for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java index f0329285..5a1782ab 100644 --- a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java @@ -57,18 +57,18 @@ public RawOrganizationsClient withRawResponse() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -77,18 +77,38 @@ public SyncPagingIterable list() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public SyncPagingIterable list(ListOrganizationsRequestParameters request) { return this.rawClient.list(request).body(); @@ -97,18 +117,18 @@ public SyncPagingIterable list(ListOrganizationsRequestParameters /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public SyncPagingIterable list( ListOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -116,14 +136,14 @@ public SyncPagingIterable list( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CreateOrganizationResponseContent create(CreateOrganizationRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CreateOrganizationResponseContent create( CreateOrganizationRequestContent request, RequestOptions requestOptions) { @@ -160,7 +180,7 @@ public GetOrganizationResponseContent get(String id, RequestOptions requestOptio /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public void delete(String id) { this.rawClient.delete(id).body(); @@ -168,28 +188,35 @@ public void delete(String id) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public UpdateOrganizationResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. + */ + public UpdateOrganizationResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public UpdateOrganizationResponseContent update(String id, UpdateOrganizationRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public UpdateOrganizationResponseContent update( String id, UpdateOrganizationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/PromptsClient.java b/src/main/java/com/auth0/client/mgmt/PromptsClient.java index 2b0f9ae1..8f867ce8 100644 --- a/src/main/java/com/auth0/client/mgmt/PromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/PromptsClient.java @@ -41,35 +41,42 @@ public RawPromptsClient withRawResponse() { } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public GetSettingsResponseContent getSettings() { return this.rawClient.getSettings().body(); } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public GetSettingsResponseContent getSettings(RequestOptions requestOptions) { return this.rawClient.getSettings(requestOptions).body(); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public UpdateSettingsResponseContent updateSettings() { return this.rawClient.updateSettings().body(); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. + */ + public UpdateSettingsResponseContent updateSettings(RequestOptions requestOptions) { + return this.rawClient.updateSettings(requestOptions).body(); + } + + /** + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public UpdateSettingsResponseContent updateSettings(UpdateSettingsRequestContent request) { return this.rawClient.updateSettings(request).body(); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public UpdateSettingsResponseContent updateSettings( UpdateSettingsRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java index 98e3a8f4..129ef118 100644 --- a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java @@ -55,6 +55,13 @@ public ManagementApiHttpResponse> list() { return list(ListActionsRequestParameters.builder().build()); } + /** + * Retrieve all actions. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListActionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all actions. */ @@ -89,6 +96,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "installed", request.getInstalled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -156,10 +168,14 @@ public ManagementApiHttpResponse create(CreateActio */ public ManagementApiHttpResponse create( CreateActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/actions") - .build(); + .addPathSegments("actions/actions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -168,7 +184,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -223,13 +239,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve an action by its ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -282,6 +302,13 @@ public ManagementApiHttpResponse delete(String id) { return delete(id, DeleteActionRequestParameters.builder().build()); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { + return delete(id, DeleteActionRequestParameters.builder().build(), requestOptions); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -302,6 +329,11 @@ public ManagementApiHttpResponse delete( QueryStringMapper.addQueryParameter( httpUrl, "force", request.getForce().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -348,14 +380,21 @@ public ManagementApiHttpResponse delete( } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateActionRequestContent.builder().build()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateActionRequestContent.builder().build(), requestOptions); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public ManagementApiHttpResponse update( String id, UpdateActionRequestContent request) { @@ -363,15 +402,19 @@ public ManagementApiHttpResponse update( } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public ManagementApiHttpResponse update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -380,7 +423,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -438,14 +481,18 @@ public ManagementApiHttpResponse deploy(String id) * Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. */ public ManagementApiHttpResponse deploy(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -500,12 +547,16 @@ public ManagementApiHttpResponse test(String id, Test */ public ManagementApiHttpResponse test( String id, TestActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -514,7 +565,7 @@ public ManagementApiHttpResponse test( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java index 443ce688..ecba10b1 100644 --- a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse get() { * Retrieve branding settings. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding") - .build(); + .addPathSegments("branding"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -97,6 +101,13 @@ public ManagementApiHttpResponse update() { return update(UpdateBrandingRequestContent.builder().build()); } + /** + * Update branding settings. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateBrandingRequestContent.builder().build(), requestOptions); + } + /** * Update branding settings. */ @@ -109,10 +120,14 @@ public ManagementApiHttpResponse update(UpdateBra */ public ManagementApiHttpResponse update( UpdateBrandingRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding") - .build(); + .addPathSegments("branding"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -121,7 +136,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java index b288b691..18702fe9 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java @@ -47,14 +47,22 @@ public RawClientGrantsClient(ClientOptions clientOptions) { } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public ManagementApiHttpResponse> list() { return list(ListClientGrantsRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListClientGrantsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public ManagementApiHttpResponse> list( ListClientGrantsRequestParameters request) { @@ -62,7 +70,7 @@ public ManagementApiHttpResponse> } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public ManagementApiHttpResponse> list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -93,6 +101,11 @@ public ManagementApiHttpResponse> QueryStringMapper.addQueryParameter( httpUrl, "subject_type", request.getSubjectType().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -147,21 +160,25 @@ public ManagementApiHttpResponse> } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public ManagementApiHttpResponse create(CreateClientGrantRequestContent request) { return create(request, null); } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public ManagementApiHttpResponse create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -170,7 +187,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -221,7 +238,7 @@ public ManagementApiHttpResponse create( } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public ManagementApiHttpResponse get(String id) { @@ -229,17 +246,21 @@ public ManagementApiHttpResponse get(String id) { } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -283,23 +304,27 @@ public ManagementApiHttpResponse get(String id, R } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -347,6 +372,14 @@ public ManagementApiHttpResponse update(String return update(id, UpdateClientGrantRequestContent.builder().build()); } + /** + * Update a client grant. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateClientGrantRequestContent.builder().build(), requestOptions); + } + /** * Update a client grant. */ @@ -360,11 +393,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -373,7 +410,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java index 1e6536e4..08099a14 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java @@ -49,37 +49,37 @@ public RawClientsClient(ClientOptions clientOptions) { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse> list() { return list(ListClientsRequestParameters.builder().build()); @@ -87,37 +87,75 @@ public ManagementApiHttpResponse> list() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • + * The following can be retrieved with any scope: + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse> list(ListClientsRequestParameters request) { return list(request, null); @@ -125,37 +163,37 @@ public ManagementApiHttpResponse> list(ListClientsReq /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse> list( ListClientsRequestParameters request, RequestOptions requestOptions) { @@ -190,6 +228,11 @@ public ManagementApiHttpResponse> list( if (!request.getQ().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -246,47 +289,51 @@ public ManagementApiHttpResponse> list( } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

      */ public ManagementApiHttpResponse create(CreateClientRequestContent request) { return create(request, null); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read
      Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

      */ public ManagementApiHttpResponse create( CreateClientRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -295,7 +342,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -344,36 +391,36 @@ public ManagementApiHttpResponse create( /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse get(String id) { return get(id, GetClientRequestParameters.builder().build()); @@ -381,36 +428,73 @@ public ManagementApiHttpResponse get(String id) { /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetClientRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • + * The following properties can be retrieved with any of the scopes: + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse get(String id, GetClientRequestParameters request) { return get(id, request, null); @@ -418,36 +502,36 @@ public ManagementApiHttpResponse get(String id, GetCli /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse get( String id, GetClientRequestParameters request, RequestOptions requestOptions) { @@ -463,6 +547,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -521,13 +610,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a client and related configuration (rules, connections, etc). */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -569,15 +662,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public ManagementApiHttpResponse update(String id) { @@ -585,15 +678,31 @@ public ManagementApiHttpResponse update(String id) } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. + *

      Notes:

      + *
        + *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • + *
      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateClientRequestContent.builder().build(), requestOptions); + } + + /** + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public ManagementApiHttpResponse update( @@ -602,24 +711,28 @@ public ManagementApiHttpResponse update( } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public ManagementApiHttpResponse update( String id, UpdateClientRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -628,7 +741,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -678,7 +791,7 @@ public ManagementApiHttpResponse update( /** * Rotate a client secret. *

      This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

      - *

      For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

      + *

      For more information, read Rotate Client Secrets.

      */ public ManagementApiHttpResponse rotateSecret(String id) { return rotateSecret(id, null); @@ -687,18 +800,22 @@ public ManagementApiHttpResponse rotateSecret /** * Rotate a client secret. *

      This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

      - *

      For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

      + *

      For more information, read Rotate Client Secrets.

      */ public ManagementApiHttpResponse rotateSecret( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(id) - .addPathSegments("rotate-secret") - .build(); + .addPathSegments("rotate-secret"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java index 649d5b42..4f3b2e2e 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java @@ -55,6 +55,13 @@ public ManagementApiHttpResponse> list() { return list(ListConnectionProfileRequestParameters.builder().build()); } + /** + * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListConnectionProfileRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. */ @@ -76,6 +83,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -145,10 +157,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateConnectionProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connection-profiles") - .build(); + .addPathSegments("connection-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -157,7 +173,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -217,12 +233,16 @@ public ManagementApiHttpResponse l */ public ManagementApiHttpResponse listTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connection-profiles/templates") - .build(); + .addPathSegments("connection-profiles/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -275,13 +295,17 @@ public ManagementApiHttpResponse ge */ public ManagementApiHttpResponse getTemplate( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -337,13 +361,17 @@ public ManagementApiHttpResponse get(String */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -398,13 +426,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a single Connection Profile specified by ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -449,6 +481,14 @@ public ManagementApiHttpResponse update( return update(id, UpdateConnectionProfileRequestContent.builder().build()); } + /** + * Update the details of a specific Connection Profile. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateConnectionProfileRequestContent.builder().build(), requestOptions); + } + /** * Update the details of a specific Connection Profile. */ @@ -462,11 +502,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateConnectionProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -475,7 +519,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java index 9f698a3b..744b157d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java @@ -48,40 +48,60 @@ public RawConnectionsClient(ClientOptions clientOptions) { } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list() { return list(ListConnectionsQueryParameters.builder().build()); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListConnectionsQueryParameters.builder().build(), requestOptions); + } + + /** + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListConnectionsQueryParameters request) { @@ -89,20 +109,20 @@ public ManagementApiHttpResponse> list( } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListConnectionsQueryParameters request, RequestOptions requestOptions) { @@ -130,6 +150,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "strategy", request.getStrategy().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -186,23 +211,27 @@ public ManagementApiHttpResponse> list( } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

      <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      + * Creates a new connection according to the JSON object received in body. + *

      Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      */ public ManagementApiHttpResponse create(CreateConnectionRequestContent request) { return create(request, null); } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

      <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      + * Creates a new connection according to the JSON object received in body. + *

      Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      */ public ManagementApiHttpResponse create( CreateConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connections") - .build(); + .addPathSegments("connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -211,7 +240,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -259,14 +288,21 @@ public ManagementApiHttpResponse create( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public ManagementApiHttpResponse get(String id) { return get(id, GetConnectionRequestParameters.builder().build()); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetConnectionRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public ManagementApiHttpResponse get( String id, GetConnectionRequestParameters request) { @@ -274,7 +310,7 @@ public ManagementApiHttpResponse get( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public ManagementApiHttpResponse get( String id, GetConnectionRequestParameters request, RequestOptions requestOptions) { @@ -290,6 +326,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -338,25 +379,29 @@ public ManagementApiHttpResponse get( } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

      <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

      + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

      Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

      <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

      + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

      Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -398,16 +443,24 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateConnectionRequestContent.builder().build()); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateConnectionRequestContent.builder().build(), requestOptions); + } + + /** + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public ManagementApiHttpResponse update( String id, UpdateConnectionRequestContent request) { @@ -415,16 +468,20 @@ public ManagementApiHttpResponse update( } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public ManagementApiHttpResponse update( String id, UpdateConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -433,7 +490,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -484,24 +541,28 @@ public ManagementApiHttpResponse update( } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public ManagementApiHttpResponse checkStatus(String id) { return checkStatus(id, null); } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public ManagementApiHttpResponse checkStatus(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("status") - .build(); + .addPathSegments("status"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java index 145bc801..573008d6 100644 --- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java @@ -46,21 +46,28 @@ public RawCustomDomainsClient(ClientOptions clientOptions) { } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public ManagementApiHttpResponse> list() { return list(ListCustomDomainsRequestParameters.builder().build()); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListCustomDomainsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details on custom domains. */ public ManagementApiHttpResponse> list(ListCustomDomainsRequestParameters request) { return list(request, null); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public ManagementApiHttpResponse> list( ListCustomDomainsRequestParameters request, RequestOptions requestOptions) { @@ -82,6 +89,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -159,10 +171,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateCustomDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("custom-domains") - .build(); + .addPathSegments("custom-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -171,7 +187,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -230,13 +246,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve a custom domain configuration and status. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -293,13 +313,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a custom domain and stop serving requests for it. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -347,11 +371,11 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -359,7 +383,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public ManagementApiHttpResponse update(String id) { @@ -373,11 +397,11 @@ public ManagementApiHttpResponse update(Strin *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -385,7 +409,34 @@ public ManagementApiHttpResponse update(Strin *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • + *
      + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateCustomDomainRequestContent.builder().build(), requestOptions); + } + + /** + * Update a custom domain. + *

      These are the attributes that can be updated:

      + *
        + *
      • custom_client_ip_header
      • + *
      • tls_policy
      • + *
      + *

      Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
      To update the custom_client_ip_header for a domain, the body to + * send should be: + *
      { "custom_client_ip_header": "cf-connecting-ip" }

      + *

      Updating TLS_POLICY for a custom domain
      To update the tls_policy for a domain, the body to send should be: + *
      { "tls_policy": "recommended" }

      + *

      TLS Policies:

      + *
        + *
      • recommended - for modern usage this includes TLS 1.2 only
      • + *
      + *

      Some considerations:

      + *
        + *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public ManagementApiHttpResponse update( @@ -400,11 +451,11 @@ public ManagementApiHttpResponse update( *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -412,16 +463,20 @@ public ManagementApiHttpResponse update( *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public ManagementApiHttpResponse update( String id, UpdateCustomDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -430,7 +485,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -486,14 +541,18 @@ public ManagementApiHttpResponse test(String id * Run the test process on a custom domain. */ public ManagementApiHttpResponse test(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -541,10 +600,10 @@ public ManagementApiHttpResponse test(String id /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public ManagementApiHttpResponse verify(String id) { return verify(id, null); @@ -552,21 +611,25 @@ public ManagementApiHttpResponse verify(Strin /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public ManagementApiHttpResponse verify( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") .addPathSegment(id) - .addPathSegments("verify") - .build(); + .addPathSegments("verify"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java index 7412f575..90bb8a4a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java @@ -42,14 +42,21 @@ public RawDeviceCredentialsClient(ClientOptions clientOptions) { } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public ManagementApiHttpResponse> list() { return list(ListDeviceCredentialsRequestParameters.builder().build()); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListDeviceCredentialsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public ManagementApiHttpResponse> list( ListDeviceCredentialsRequestParameters request) { @@ -57,7 +64,7 @@ public ManagementApiHttpResponse> list( } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public ManagementApiHttpResponse> list( ListDeviceCredentialsRequestParameters request, RequestOptions requestOptions) { @@ -89,6 +96,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "type", request.getType().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -147,8 +159,8 @@ public ManagementApiHttpResponse> list( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public ManagementApiHttpResponse createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request) { @@ -156,15 +168,19 @@ public ManagementApiHttpResponse } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public ManagementApiHttpResponse createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("device-credentials") - .build(); + .addPathSegments("device-credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -173,7 +189,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -232,13 +248,17 @@ public ManagementApiHttpResponse delete(String id) { * Permanently delete a device credential (such as a refresh token or public key) with the given ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("device-credentials") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java index 3e8c47f3..0d71ba5a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java @@ -54,10 +54,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("email-templates") - .build(); + .addPathSegments("email-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -66,7 +70,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -126,13 +130,17 @@ public ManagementApiHttpResponse get(EmailTempl */ public ManagementApiHttpResponse get( EmailTemplateNameEnum templateName, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -188,11 +196,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( EmailTemplateNameEnum templateName, SetEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -201,7 +213,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -255,6 +267,14 @@ public ManagementApiHttpResponse update(Emai return update(templateName, UpdateEmailTemplateRequestContent.builder().build()); } + /** + * Modify an email template. + */ + public ManagementApiHttpResponse update( + EmailTemplateNameEnum templateName, RequestOptions requestOptions) { + return update(templateName, UpdateEmailTemplateRequestContent.builder().build(), requestOptions); + } + /** * Modify an email template. */ @@ -270,11 +290,15 @@ public ManagementApiHttpResponse update( EmailTemplateNameEnum templateName, UpdateEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -283,7 +307,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java index eaa8ea2a..2b3c0ddb 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java @@ -52,6 +52,11 @@ public ManagementApiHttpResponse> return list(ListEventStreamsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListEventStreamsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( ListEventStreamsRequestParameters request) { return list(request, null); @@ -67,6 +72,11 @@ public ManagementApiHttpResponse> httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -129,10 +139,14 @@ public ManagementApiHttpResponse create(EventS public ManagementApiHttpResponse create( EventStreamsCreateRequest request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("event-streams") - .build(); + .addPathSegments("event-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -141,7 +155,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -193,13 +207,17 @@ public ManagementApiHttpResponse get(String id) { } public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -247,13 +265,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -298,6 +320,11 @@ public ManagementApiHttpResponse update(String return update(id, UpdateEventStreamRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateEventStreamRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( String id, UpdateEventStreamRequestContent request) { return update(id, request, null); @@ -305,11 +332,15 @@ public ManagementApiHttpResponse update( public ManagementApiHttpResponse update( String id, UpdateEventStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -318,7 +349,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -369,12 +400,16 @@ public ManagementApiHttpResponse test public ManagementApiHttpResponse test( String id, CreateEventStreamTestEventRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -383,7 +418,7 @@ public ManagementApiHttpResponse test throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java index f9ac8c90..4ec62d73 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java @@ -49,6 +49,10 @@ public ManagementApiHttpResponse> list() { return list(ListFlowsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListFlowsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list(ListFlowsRequestParameters request) { return list(request, null); } @@ -71,6 +75,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -132,10 +141,14 @@ public ManagementApiHttpResponse create(CreateFlowReq public ManagementApiHttpResponse create( CreateFlowRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows") - .build(); + .addPathSegments("flows"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -144,7 +157,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -192,6 +205,10 @@ public ManagementApiHttpResponse get(String id) { return get(id, GetFlowRequestParameters.builder().build()); } + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetFlowRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse get(String id, GetFlowRequestParameters request) { return get(id, request, null); } @@ -206,6 +223,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -258,13 +280,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -312,17 +338,25 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateFlowRequestContent.builder().build()); } + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateFlowRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update(String id, UpdateFlowRequestContent request) { return update(id, request, null); } public ManagementApiHttpResponse update( String id, UpdateFlowRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -331,7 +365,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java index dbcca150..c3c05bbc 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java @@ -49,6 +49,10 @@ public ManagementApiHttpResponse> list() { return list(ListFormsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListFormsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list(ListFormsRequestParameters request) { return list(request, null); } @@ -67,6 +71,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -128,10 +137,14 @@ public ManagementApiHttpResponse create(CreateFormReq public ManagementApiHttpResponse create( CreateFormRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("forms") - .build(); + .addPathSegments("forms"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +153,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -188,6 +201,10 @@ public ManagementApiHttpResponse get(String id) { return get(id, GetFormRequestParameters.builder().build()); } + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetFormRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse get(String id, GetFormRequestParameters request) { return get(id, request, null); } @@ -202,6 +219,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -254,13 +276,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("forms") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -305,17 +331,25 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateFormRequestContent.builder().build()); } + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateFormRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update(String id, UpdateFormRequestContent request) { return update(id, request, null); } public ManagementApiHttpResponse update( String id, UpdateFormRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("forms") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -324,7 +358,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java index a99ca73c..5b5eca03 100644 --- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -45,6 +45,13 @@ public ManagementApiHttpResponse> list() { return list(ListGroupsRequestParameters.builder().build()); } + /** + * List all groups in your tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups in your tenant. */ @@ -85,6 +92,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -150,13 +162,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve a group by its ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("groups") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java index 316459bd..72b6530a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java @@ -47,21 +47,28 @@ public RawHooksClient(ClientOptions clientOptions) { } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse> list() { return list(ListHooksRequestParameters.builder().build()); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListHooksRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse> list(ListHooksRequestParameters request) { return list(request, null); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse> list( ListHooksRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +92,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "triggerId", request.getTriggerId().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,10 +167,14 @@ public ManagementApiHttpResponse create(CreateHookReq */ public ManagementApiHttpResponse create( CreateHookRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("hooks") - .build(); + .addPathSegments("hooks"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -167,7 +183,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -215,21 +231,28 @@ public ManagementApiHttpResponse create( } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public ManagementApiHttpResponse get(String id) { return get(id, GetHookRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetHookRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public ManagementApiHttpResponse get(String id, GetHookRequestParameters request) { return get(id, request, null); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public ManagementApiHttpResponse get( String id, GetHookRequestParameters request, RequestOptions requestOptions) { @@ -241,6 +264,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "fields", request.getFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -299,13 +327,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a hook. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -353,6 +385,13 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateHookRequestContent.builder().build()); } + /** + * Update an existing hook. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateHookRequestContent.builder().build(), requestOptions); + } + /** * Update an existing hook. */ @@ -365,11 +404,15 @@ public ManagementApiHttpResponse update(String id, Up */ public ManagementApiHttpResponse update( String id, UpdateHookRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -378,7 +421,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java index 65b0c8df..cd2881e4 100644 --- a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java @@ -42,13 +42,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieves a job. Useful to check its status. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java index 08fdd83d..66379479 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java @@ -42,8 +42,8 @@ public RawLogStreamsClient(ClientOptions clientOptions) { } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -107,15 +107,15 @@ public RawLogStreamsClient(ClientOptions clientOptions) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public ManagementApiHttpResponse> list() { return list(null); } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -179,15 +179,19 @@ public ManagementApiHttpResponse> list() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("log-streams") - .build(); + .addPathSegments("log-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -233,9 +237,9 @@ public ManagementApiHttpResponse> list(RequestOpti /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -244,8 +248,8 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -256,17 +260,17 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -276,9 +280,9 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -286,8 +290,8 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -298,17 +302,17 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -317,9 +321,9 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -328,8 +332,8 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -340,16 +344,16 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -357,7 +361,7 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse create(CreateLogStreamRequestContent request) { return create(request, null); @@ -365,9 +369,9 @@ public ManagementApiHttpResponse create(CreateLo /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -376,8 +380,8 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -388,17 +392,17 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -408,9 +412,9 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -418,8 +422,8 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -430,17 +434,17 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -449,9 +453,9 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -460,8 +464,8 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -472,16 +476,16 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -489,14 +493,18 @@ public ManagementApiHttpResponse create(CreateLo
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse create( CreateLogStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("log-streams") - .build(); + .addPathSegments("log-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -505,7 +513,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -554,7 +562,7 @@ public ManagementApiHttpResponse create( /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -564,7 +572,7 @@ public ManagementApiHttpResponse create(
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -575,7 +583,7 @@ public ManagementApiHttpResponse create(
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -584,8 +592,8 @@ public ManagementApiHttpResponse create(
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -594,10 +602,10 @@ public ManagementApiHttpResponse create(
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -608,19 +616,19 @@ public ManagementApiHttpResponse create(
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -628,9 +636,9 @@ public ManagementApiHttpResponse create(
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -641,7 +649,7 @@ public ManagementApiHttpResponse create(
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -649,10 +657,10 @@ public ManagementApiHttpResponse create(
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public ManagementApiHttpResponse get(String id) { return get(id, null); @@ -660,7 +668,7 @@ public ManagementApiHttpResponse get(String id) { /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -670,7 +678,7 @@ public ManagementApiHttpResponse get(String id) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -681,7 +689,7 @@ public ManagementApiHttpResponse get(String id) {
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -690,8 +698,8 @@ public ManagementApiHttpResponse get(String id) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -700,10 +708,10 @@ public ManagementApiHttpResponse get(String id) {
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -714,19 +722,19 @@ public ManagementApiHttpResponse get(String id) {
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -734,9 +742,9 @@ public ManagementApiHttpResponse get(String id) {
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -747,7 +755,7 @@ public ManagementApiHttpResponse get(String id) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -755,19 +763,23 @@ public ManagementApiHttpResponse get(String id) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -821,13 +833,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a log stream. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -873,40 +889,40 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateLogStreamRequestContent.builder().build()); @@ -914,40 +930,81 @@ public ManagementApiHttpResponse update(String i /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
      +     * 	"status": "active|paused"
      +     * }
      + *
      Update the name of a log stream
      {
      +     * 	"name": "string"
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
      +     *   "sink": {
      +     *     "httpEndpoint": "string",
      +     *     "httpContentType": "string",
      +     *     "httpContentFormat": "JSONARRAY|JSONLINES",
      +     *     "httpAuthorization": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
      +     *   "sink": {
      +     * 		"datadogRegion": "string",
      +     * 		"datadogApiKey": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
      +     *   "sink": {
      +     *     "splunkDomain": "string",
      +     *     "splunkToken": "string",
      +     *     "splunkPort": "string",
      +     *     "splunkSecure": "boolean"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
      +     *   "sink": {
      +     *     "sumoSourceAddress": "string"
      +     *   }
      +     * }

      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateLogStreamRequestContent.builder().build(), requestOptions); + } + + /** + * Update a log stream. + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse update( String id, UpdateLogStreamRequestContent request) { @@ -956,48 +1013,52 @@ public ManagementApiHttpResponse update( /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse update( String id, UpdateLogStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -1006,7 +1067,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java index 8b6c7755..5bae14d7 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java @@ -40,26 +40,26 @@ public RawLogsClient(ClientOptions clientOptions) { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public ManagementApiHttpResponse> list() { return list(ListLogsRequestParameters.builder().build()); @@ -67,26 +67,53 @@ public ManagementApiHttpResponse> list() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public ManagementApiHttpResponse> list(ListLogsRequestParameters request) { return list(request, null); @@ -94,26 +121,26 @@ public ManagementApiHttpResponse> list(ListLogsRequestPa /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public ManagementApiHttpResponse> list( ListLogsRequestParameters request, RequestOptions requestOptions) { @@ -141,6 +168,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "search", request.getSearch().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -207,13 +239,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve an individual log event. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("logs") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java index 9748e193..92638f1d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java @@ -54,6 +54,14 @@ public ManagementApiHttpResponse> return list(ListNetworkAclsRequestParameters.builder().build()); } + /** + * Get all access control list entries for your client. + */ + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListNetworkAclsRequestParameters.builder().build(), requestOptions); + } + /** * Get all access control list entries for your client. */ @@ -75,6 +83,11 @@ public ManagementApiHttpResponse> httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -143,10 +156,14 @@ public ManagementApiHttpResponse create(CreateNetworkAclRequestContent req */ public ManagementApiHttpResponse create( CreateNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("network-acls") - .build(); + .addPathSegments("network-acls"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -155,7 +172,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -214,13 +231,17 @@ public ManagementApiHttpResponse get(String id) { * Get a specific access control list entry for your client. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -276,11 +297,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( String id, SetNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -289,7 +314,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -347,13 +372,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete existing access control list for your client. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -404,6 +433,13 @@ public ManagementApiHttpResponse update(String return update(id, UpdateNetworkAclRequestContent.builder().build()); } + /** + * Update existing access control list for your client. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateNetworkAclRequestContent.builder().build(), requestOptions); + } + /** * Update existing access control list for your client. */ @@ -417,11 +453,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -430,7 +470,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java index c7c7df5f..999ef2f8 100644 --- a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java @@ -50,18 +50,18 @@ public RawOrganizationsClient(ClientOptions clientOptions) { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list() { return list(ListOrganizationsRequestParameters.builder().build()); @@ -70,18 +70,38 @@ public ManagementApiHttpResponse> list() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListOrganizationsRequestParameters request) { @@ -91,18 +111,18 @@ public ManagementApiHttpResponse> list( /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -118,6 +138,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,7 +199,7 @@ public ManagementApiHttpResponse> list( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public ManagementApiHttpResponse create( CreateOrganizationRequestContent request) { @@ -182,14 +207,18 @@ public ManagementApiHttpResponse create( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public ManagementApiHttpResponse create( CreateOrganizationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("organizations") - .build(); + .addPathSegments("organizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -198,7 +227,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -258,13 +287,17 @@ public ManagementApiHttpResponse getByName */ public ManagementApiHttpResponse getByName( String name, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations/name") - .addPathSegment(name) - .build(); + .addPathSegment(name); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -319,13 +352,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve details about a single Organization specified by ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -370,7 +407,7 @@ public ManagementApiHttpResponse get(String id, /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); @@ -378,16 +415,20 @@ public ManagementApiHttpResponse delete(String id) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -432,14 +473,22 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateOrganizationRequestContent.builder().build()); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateOrganizationRequestContent.builder().build(), requestOptions); + } + + /** + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public ManagementApiHttpResponse update( String id, UpdateOrganizationRequestContent request) { @@ -447,15 +496,19 @@ public ManagementApiHttpResponse update( } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public ManagementApiHttpResponse update( String id, UpdateOrganizationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -464,7 +517,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java index 502a1d94..6313099a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java @@ -35,22 +35,26 @@ public RawPromptsClient(ClientOptions clientOptions) { } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse getSettings() { return getSettings(null); } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse getSettings(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts") - .build(); + .addPathSegments("prompts"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -91,14 +95,21 @@ public ManagementApiHttpResponse getSettings(Request } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse updateSettings() { return updateSettings(UpdateSettingsRequestContent.builder().build()); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. + */ + public ManagementApiHttpResponse updateSettings(RequestOptions requestOptions) { + return updateSettings(UpdateSettingsRequestContent.builder().build(), requestOptions); + } + + /** + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse updateSettings( UpdateSettingsRequestContent request) { @@ -106,14 +117,18 @@ public ManagementApiHttpResponse updateSettings( } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse updateSettings( UpdateSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts") - .build(); + .addPathSegments("prompts"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -122,7 +137,7 @@ public ManagementApiHttpResponse updateSettings( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java index 801e513b..6be14819 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java @@ -46,13 +46,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve refresh token information. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,13 +110,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a refresh token by its ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -160,6 +168,14 @@ public ManagementApiHttpResponse update(Strin return update(id, UpdateRefreshTokenRequestContent.builder().build()); } + /** + * Update a refresh token by its ID. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateRefreshTokenRequestContent.builder().build(), requestOptions); + } + /** * Update a refresh token by its ID. */ @@ -173,11 +189,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateRefreshTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -186,7 +206,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java index 847c201e..2f53ba67 100644 --- a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java @@ -53,6 +53,13 @@ public ManagementApiHttpResponse> list() { return list(ListResourceServerRequestParameters.builder().build()); } + /** + * Retrieve details of all APIs associated with your tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListResourceServerRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all APIs associated with your tenant. */ @@ -82,6 +89,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "identifiers", request.getIdentifiers().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -139,7 +151,7 @@ public ManagementApiHttpResponse> list( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public ManagementApiHttpResponse create( CreateResourceServerRequestContent request) { @@ -147,14 +159,18 @@ public ManagementApiHttpResponse create( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public ManagementApiHttpResponse create( CreateResourceServerRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("resource-servers") - .build(); + .addPathSegments("resource-servers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -163,7 +179,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -212,14 +228,21 @@ public ManagementApiHttpResponse create( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public ManagementApiHttpResponse get(String id) { return get(id, GetResourceServerRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetResourceServerRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve API details with the given ID. */ public ManagementApiHttpResponse get( String id, GetResourceServerRequestParameters request) { @@ -227,7 +250,7 @@ public ManagementApiHttpResponse get( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public ManagementApiHttpResponse get( String id, GetResourceServerRequestParameters request, RequestOptions requestOptions) { @@ -239,6 +262,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -287,23 +315,27 @@ public ManagementApiHttpResponse get( } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("resource-servers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -345,14 +377,22 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateResourceServerRequestContent.builder().build()); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateResourceServerRequestContent.builder().build(), requestOptions); + } + + /** + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public ManagementApiHttpResponse update( String id, UpdateResourceServerRequestContent request) { @@ -360,15 +400,19 @@ public ManagementApiHttpResponse update( } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public ManagementApiHttpResponse update( String id, UpdateResourceServerRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("resource-servers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -377,7 +421,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java index db4021f6..ce2b991c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java @@ -47,7 +47,7 @@ public RawRolesClient(ClientOptions clientOptions) { /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public ManagementApiHttpResponse> list() { return list(ListRolesRequestParameters.builder().build()); @@ -55,7 +55,15 @@ public ManagementApiHttpResponse> list() { /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of user roles created in your tenant. + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public ManagementApiHttpResponse> list(ListRolesRequestParameters request) { return list(request, null); @@ -63,7 +71,7 @@ public ManagementApiHttpResponse> list(ListRolesRequest /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public ManagementApiHttpResponse> list( ListRolesRequestParameters request, RequestOptions requestOptions) { @@ -79,6 +87,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "name_filter", request.getNameFilter().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -135,23 +148,27 @@ public ManagementApiHttpResponse> list( } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

      <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      + * Create a user role for Role-Based Access Control. + *

      Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      */ public ManagementApiHttpResponse create(CreateRoleRequestContent request) { return create(request, null); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

      <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      + * Create a user role for Role-Based Access Control. + *

      Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      */ public ManagementApiHttpResponse create( CreateRoleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +177,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -208,23 +225,27 @@ public ManagementApiHttpResponse create( } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public ManagementApiHttpResponse get(String id) { return get(id, null); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -271,23 +292,27 @@ public ManagementApiHttpResponse get(String id, RequestO } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -332,29 +357,40 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateRoleRequestContent.builder().build()); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateRoleRequestContent.builder().build(), requestOptions); + } + + /** + * Modify the details of a specific user role specified by ID. */ public ManagementApiHttpResponse update(String id, UpdateRoleRequestContent request) { return update(id, request, null); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public ManagementApiHttpResponse update( String id, UpdateRoleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -363,7 +399,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java index c58b81dd..94cf975d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java @@ -47,21 +47,28 @@ public RawRulesClient(ClientOptions clientOptions) { } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public ManagementApiHttpResponse> list() { return list(ListRulesRequestParameters.builder().build()); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListRulesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public ManagementApiHttpResponse> list(ListRulesRequestParameters request) { return list(request, null); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public ManagementApiHttpResponse> list( ListRulesRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +92,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -144,23 +156,27 @@ public ManagementApiHttpResponse> list( } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

      Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

      + * Create a new rule. + *

      Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

      */ public ManagementApiHttpResponse create(CreateRuleRequestContent request) { return create(request, null); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

      Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

      + * Create a new rule. + *

      Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

      */ public ManagementApiHttpResponse create( CreateRuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("rules") - .build(); + .addPathSegments("rules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -169,7 +185,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -217,21 +233,28 @@ public ManagementApiHttpResponse create( } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse get(String id) { return get(id, GetRuleRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetRuleRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse get(String id, GetRuleRequestParameters request) { return get(id, request, null); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse get( String id, GetRuleRequestParameters request, RequestOptions requestOptions) { @@ -247,6 +270,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -305,13 +333,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a rule. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -359,6 +391,13 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateRuleRequestContent.builder().build()); } + /** + * Update an existing rule. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateRuleRequestContent.builder().build(), requestOptions); + } + /** * Update an existing rule. */ @@ -371,11 +410,15 @@ public ManagementApiHttpResponse update(String id, Up */ public ManagementApiHttpResponse update( String id, UpdateRuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -384,7 +427,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java index 46750c43..3796bcc5 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java @@ -50,12 +50,16 @@ public ManagementApiHttpResponse> list() { *
      */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("rules-configs") - .build(); + .addPathSegments("rules-configs"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -109,11 +113,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( String key, SetRulesConfigRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules-configs") - .addPathSegment(key) - .build(); + .addPathSegment(key); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -122,7 +130,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -174,13 +182,17 @@ public ManagementApiHttpResponse delete(String key) { * Delete a rules config variable identified by its key. */ public ManagementApiHttpResponse delete(String key, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules-configs") - .addPathSegment(key) - .build(); + .addPathSegment(key); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java index 3e0b7188..42f5cb52 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java @@ -53,6 +53,13 @@ public ManagementApiHttpResponse> list() return list(ListSelfServiceProfilesRequestParameters.builder().build()); } + /** + * Retrieves self-service profiles. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListSelfServiceProfilesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieves self-service profiles. */ @@ -74,6 +81,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -144,10 +156,14 @@ public ManagementApiHttpResponse create */ public ManagementApiHttpResponse create( CreateSelfServiceProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("self-service-profiles") - .build(); + .addPathSegments("self-service-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +172,7 @@ public ManagementApiHttpResponse create throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -219,13 +235,17 @@ public ManagementApiHttpResponse get(Strin */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -286,13 +306,17 @@ public ManagementApiHttpResponse delete(String id) { * Deletes a self-service profile by Id. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -343,6 +367,14 @@ public ManagementApiHttpResponse update return update(id, UpdateSelfServiceProfileRequestContent.builder().build()); } + /** + * Updates a self-service profile. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateSelfServiceProfileRequestContent.builder().build(), requestOptions); + } + /** * Updates a self-service profile. */ @@ -356,11 +388,15 @@ public ManagementApiHttpResponse update */ public ManagementApiHttpResponse update( String id, UpdateSelfServiceProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -369,7 +405,7 @@ public ManagementApiHttpResponse update throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java index 97bfdaf0..24d00366 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java @@ -46,13 +46,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve session information. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,13 +110,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a session by ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -160,6 +168,13 @@ public ManagementApiHttpResponse update(String id) return update(id, UpdateSessionRequestContent.builder().build()); } + /** + * Update session information. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateSessionRequestContent.builder().build(), requestOptions); + } + /** * Update session information. */ @@ -173,11 +188,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateSessionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -186,7 +205,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -244,14 +263,18 @@ public ManagementApiHttpResponse revoke(String id) { * Revokes a session by ID and all associated refresh tokens. */ public ManagementApiHttpResponse revoke(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java index e4e0df9b..f218abd2 100644 --- a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse getActiveUsersCount() { * Retrieve the number of active users that logged in during the last 30 days. */ public ManagementApiHttpResponse getActiveUsersCount(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("stats/active-users") - .build(); + .addPathSegments("stats/active-users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -96,6 +100,13 @@ public ManagementApiHttpResponse> getDaily() { return getDaily(GetDailyStatsRequestParameters.builder().build()); } + /** + * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. + */ + public ManagementApiHttpResponse> getDaily(RequestOptions requestOptions) { + return getDaily(GetDailyStatsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. */ @@ -118,6 +129,11 @@ public ManagementApiHttpResponse> getDaily( if (!request.getTo().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "to", request.getTo().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java index a3a24d23..790db11a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse get() { * Get the supplemental signals configuration for a tenant. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("supplemental-signals") - .build(); + .addPathSegments("supplemental-signals"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -107,10 +111,14 @@ public ManagementApiHttpResponse patch( */ public ManagementApiHttpResponse patch( UpdateSupplementalSignalsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("supplemental-signals") - .build(); + .addPathSegments("supplemental-signals"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -119,7 +127,7 @@ public ManagementApiHttpResponse patch( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java index 6befa053..c8455c63 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java @@ -49,10 +49,14 @@ public ManagementApiHttpResponse verifyEmail( */ public ManagementApiHttpResponse verifyEmail( VerifyEmailTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tickets/email-verification") - .build(); + .addPathSegments("tickets/email-verification"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -61,7 +65,7 @@ public ManagementApiHttpResponse verifyEmail( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -116,6 +120,15 @@ public ManagementApiHttpResponse changePass return changePassword(ChangePasswordTicketRequestContent.builder().build()); } + /** + * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. + *

      Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

      + */ + public ManagementApiHttpResponse changePassword( + RequestOptions requestOptions) { + return changePassword(ChangePasswordTicketRequestContent.builder().build(), requestOptions); + } + /** * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. *

      Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

      @@ -131,10 +144,14 @@ public ManagementApiHttpResponse changePass */ public ManagementApiHttpResponse changePassword( ChangePasswordTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tickets/password-change") - .build(); + .addPathSegments("tickets/password-change"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -143,7 +160,7 @@ public ManagementApiHttpResponse changePass throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java index 0c5c0a70..8325f7b3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java @@ -47,13 +47,13 @@ public RawTokenExchangeProfilesClient(ClientOptions clientOptions) { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list() { return list(TokenExchangeProfilesListRequest.builder().build()); @@ -61,13 +61,28 @@ public ManagementApiHttpResponseBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(TokenExchangeProfilesListRequest.builder().build(), requestOptions); + } + + /** + * Retrieve a list of all Token Exchange Profiles available in your tenant. + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      + *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( TokenExchangeProfilesListRequest request) { @@ -76,13 +91,13 @@ public ManagementApiHttpResponseBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -94,6 +109,11 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -152,7 +172,7 @@ public ManagementApiHttpResponseBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse create( CreateTokenExchangeProfileRequestContent request) { @@ -161,14 +181,18 @@ public ManagementApiHttpResponse crea /** * Create a new Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("token-exchange-profiles") - .build(); + .addPathSegments("token-exchange-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -177,7 +201,7 @@ public ManagementApiHttpResponse crea throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -227,7 +251,7 @@ public ManagementApiHttpResponse crea /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse get(String id) { return get(id, null); @@ -235,17 +259,21 @@ public ManagementApiHttpResponse get(Str /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -294,7 +322,7 @@ public ManagementApiHttpResponse get( /** * Delete a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); @@ -302,16 +330,20 @@ public ManagementApiHttpResponse delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -351,7 +383,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateTokenExchangeProfileRequestContent.builder().build()); @@ -359,7 +391,15 @@ public ManagementApiHttpResponse update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateTokenExchangeProfileRequestContent.builder().build(), requestOptions); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse update(String id, UpdateTokenExchangeProfileRequestContent request) { return update(id, request, null); @@ -367,15 +407,19 @@ public ManagementApiHttpResponse update(String id, UpdateTokenExchangeProf /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse update( String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -384,7 +428,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java index 5af63d14..e3990a5a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java @@ -55,6 +55,13 @@ public ManagementApiHttpResponse> list( return list(ListUserAttributeProfileRequestParameters.builder().build()); } + /** + * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListUserAttributeProfileRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -76,6 +83,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -146,10 +158,14 @@ public ManagementApiHttpResponse crea */ public ManagementApiHttpResponse create( CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("user-attribute-profiles") - .build(); + .addPathSegments("user-attribute-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -158,7 +174,7 @@ public ManagementApiHttpResponse crea throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -218,12 +234,16 @@ public ManagementApiHttpResponse listTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("user-attribute-profiles/templates") - .build(); + .addPathSegments("user-attribute-profiles/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -276,13 +296,17 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getTemplate( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -338,13 +362,17 @@ public ManagementApiHttpResponse get(Str */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -399,13 +427,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a single User Attribute Profile specified by ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -450,6 +482,14 @@ public ManagementApiHttpResponse upda return update(id, UpdateUserAttributeProfileRequestContent.builder().build()); } + /** + * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateUserAttributeProfileRequestContent.builder().build(), requestOptions); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ @@ -463,11 +503,15 @@ public ManagementApiHttpResponse upda */ public ManagementApiHttpResponse update( String id, UpdateUserAttributeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -476,7 +520,7 @@ public ManagementApiHttpResponse upda throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java index eb1e604e..51ede97e 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java @@ -37,7 +37,7 @@ public RawUserBlocksClient(ClientOptions clientOptions) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ManagementApiHttpResponse listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -45,7 +45,7 @@ public ManagementApiHttpResponse list } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ManagementApiHttpResponse listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -60,6 +60,11 @@ public ManagementApiHttpResponse list request.getConsiderBruteForceEnablement().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -106,16 +111,16 @@ public ManagementApiHttpResponse list } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse deleteByIdentifier(DeleteUserBlocksByIdentifierRequestParameters request) { return deleteByIdentifier(request, null); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -123,6 +128,11 @@ public ManagementApiHttpResponse deleteByIdentifier( .newBuilder() .addPathSegments("user-blocks"); QueryStringMapper.addQueryParameter(httpUrl, "identifier", request.getIdentifier(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -166,14 +176,21 @@ public ManagementApiHttpResponse deleteByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ManagementApiHttpResponse list(String id) { return list(id, ListUserBlocksRequestParameters.builder().build()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public ManagementApiHttpResponse list(String id, RequestOptions requestOptions) { + return list(id, ListUserBlocksRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ManagementApiHttpResponse list( String id, ListUserBlocksRequestParameters request) { @@ -181,7 +198,7 @@ public ManagementApiHttpResponse list( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ManagementApiHttpResponse list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -196,6 +213,11 @@ public ManagementApiHttpResponse list( request.getConsiderBruteForceEnablement().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -244,25 +266,29 @@ public ManagementApiHttpResponse list( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given ID. + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given ID. + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-blocks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java index d42d2ad3..9388cba8 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java @@ -37,21 +37,28 @@ public RawUserGrantsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public ManagementApiHttpResponse> list() { return list(ListUserGrantsRequestParameters.builder().build()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListUserGrantsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve the grants associated with your account. */ public ManagementApiHttpResponse> list(ListUserGrantsRequestParameters request) { return list(request, null); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public ManagementApiHttpResponse> list( ListUserGrantsRequestParameters request, RequestOptions requestOptions) { @@ -75,6 +82,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "audience", request.getAudience().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -143,6 +155,11 @@ public ManagementApiHttpResponse deleteByUserId( .newBuilder() .addPathSegments("grants"); QueryStringMapper.addQueryParameter(httpUrl, "user_id", request.getUserId(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -193,13 +210,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a grant associated with your account. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java index 02f76f6c..2713fabe 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java @@ -60,10 +60,10 @@ public RawUsersClient(ClientOptions clientOptions) { *
    • Specify the number of users to retrieve per page and the page index
    • *
    *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public ManagementApiHttpResponse> list() { return list(ListUsersRequestParameters.builder().build()); @@ -78,10 +78,28 @@ public ManagementApiHttpResponse> list() *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public ManagementApiHttpResponse> list(ListUsersRequestParameters request) { return list(request, null); @@ -96,10 +114,10 @@ public ManagementApiHttpResponse> list(Li *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public ManagementApiHttpResponse> list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -138,6 +156,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "primary_order", request.getPrimaryOrder().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -197,23 +220,27 @@ public ManagementApiHttpResponse> list( } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public ManagementApiHttpResponse create(CreateUserRequestContent request) { return create(request, null); } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public ManagementApiHttpResponse create( CreateUserRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -222,7 +249,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -298,6 +325,11 @@ public ManagementApiHttpResponse> listUsersByEmail( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -344,21 +376,28 @@ public ManagementApiHttpResponse> listUsersByEmail( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public ManagementApiHttpResponse get(String id) { return get(id, GetUserRequestParameters.builder().build()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetUserRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public ManagementApiHttpResponse get(String id, GetUserRequestParameters request) { return get(id, request, null); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public ManagementApiHttpResponse get( String id, GetUserRequestParameters request, RequestOptions requestOptions) { @@ -374,6 +413,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -422,23 +466,27 @@ public ManagementApiHttpResponse get( } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -482,57 +530,57 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -540,7 +588,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateUserRequestContent.builder().build()); @@ -549,57 +597,57 @@ public ManagementApiHttpResponse update(String id) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -607,7 +655,74 @@ public ManagementApiHttpResponse update(String id) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateUserRequestContent.builder().build(), requestOptions); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    */ public ManagementApiHttpResponse update(String id, UpdateUserRequestContent request) { return update(id, request, null); @@ -616,57 +731,57 @@ public ManagementApiHttpResponse update(String id, Up /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -674,15 +789,19 @@ public ManagementApiHttpResponse update(String id, Up
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public ManagementApiHttpResponse update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -691,7 +810,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -739,25 +858,29 @@ public ManagementApiHttpResponse update( } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public ManagementApiHttpResponse regenerateRecoveryCode(String id) { return regenerateRecoveryCode(id, null); } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public ManagementApiHttpResponse regenerateRecoveryCode( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("recovery-code-regeneration") - .build(); + .addPathSegments("recovery-code-regeneration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -808,6 +931,13 @@ public ManagementApiHttpResponse revokeAccess(String id) { return revokeAccess(id, RevokeUserAccessRequestContent.builder().build()); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public ManagementApiHttpResponse revokeAccess(String id, RequestOptions requestOptions) { + return revokeAccess(id, RevokeUserAccessRequestContent.builder().build(), requestOptions); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ @@ -820,12 +950,16 @@ public ManagementApiHttpResponse revokeAccess(String id, RevokeUserAccessR */ public ManagementApiHttpResponse revokeAccess( String id, RevokeUserAccessRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("revoke-access") - .build(); + .addPathSegments("revoke-access"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -834,7 +968,7 @@ public ManagementApiHttpResponse revokeAccess( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java index e8a17ba7..6d0a5aa1 100644 --- a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java @@ -61,6 +61,13 @@ public UpdateRefreshTokenResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update a refresh token by its ID. + */ + public UpdateRefreshTokenResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update a refresh token by its ID. */ diff --git a/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java index 7aad2087..34716dcf 100644 --- a/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve details of all APIs associated with your tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve details of all APIs associated with your tenant. */ @@ -55,14 +62,14 @@ public SyncPagingIterable list( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CreateResourceServerResponseContent create(CreateResourceServerRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CreateResourceServerResponseContent create( CreateResourceServerRequestContent request, RequestOptions requestOptions) { @@ -70,21 +77,28 @@ public CreateResourceServerResponseContent create( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public GetResourceServerResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. + */ + public GetResourceServerResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve API details with the given ID. */ public GetResourceServerResponseContent get(String id, GetResourceServerRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public GetResourceServerResponseContent get( String id, GetResourceServerRequestParameters request, RequestOptions requestOptions) { @@ -92,35 +106,42 @@ public GetResourceServerResponseContent get( } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public UpdateResourceServerResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. + */ + public UpdateResourceServerResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public UpdateResourceServerResponseContent update(String id, UpdateResourceServerRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public UpdateResourceServerResponseContent update( String id, UpdateResourceServerRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RolesClient.java b/src/main/java/com/auth0/client/mgmt/RolesClient.java index 09f7a1a8..5c3cb3d8 100644 --- a/src/main/java/com/auth0/client/mgmt/RolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RolesClient.java @@ -43,7 +43,7 @@ public RawRolesClient withRawResponse() { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -51,7 +51,15 @@ public SyncPagingIterable list() { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve detailed list of user roles created in your tenant. + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public SyncPagingIterable list(ListRolesRequestParameters request) { return this.rawClient.list(request).body(); @@ -59,72 +67,79 @@ public SyncPagingIterable list(ListRolesRequestParameters request) { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public SyncPagingIterable list(ListRolesRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    + * Create a user role for Role-Based Access Control. + *

    Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    */ public CreateRoleResponseContent create(CreateRoleRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    + * Create a user role for Role-Based Access Control. + *

    Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    */ public CreateRoleResponseContent create(CreateRoleRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public GetRoleResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public GetRoleResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public UpdateRoleResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. + */ + public UpdateRoleResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Modify the details of a specific user role specified by ID. */ public UpdateRoleResponseContent update(String id, UpdateRoleRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public UpdateRoleResponseContent update( String id, UpdateRoleRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RulesClient.java b/src/main/java/com/auth0/client/mgmt/RulesClient.java index 9e9c9af7..b1031974 100644 --- a/src/main/java/com/auth0/client/mgmt/RulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RulesClient.java @@ -33,58 +33,72 @@ public RawRulesClient withRawResponse() { } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public SyncPagingIterable list(ListRulesRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public SyncPagingIterable list(ListRulesRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

    Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

    + * Create a new rule. + *

    Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

    */ public CreateRuleResponseContent create(CreateRuleRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

    Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

    + * Create a new rule. + *

    Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

    */ public CreateRuleResponseContent create(CreateRuleRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public GetRuleResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. + */ + public GetRuleResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public GetRuleResponseContent get(String id, GetRuleRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public GetRuleResponseContent get(String id, GetRuleRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); @@ -111,6 +125,13 @@ public UpdateRuleResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update an existing rule. + */ + public UpdateRuleResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update an existing rule. */ diff --git a/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java index bf279112..4c28c1bf 100644 --- a/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java @@ -48,6 +48,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieves self-service profiles. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieves self-service profiles. */ @@ -113,6 +120,13 @@ public UpdateSelfServiceProfileResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Updates a self-service profile. + */ + public UpdateSelfServiceProfileResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Updates a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/SessionsClient.java b/src/main/java/com/auth0/client/mgmt/SessionsClient.java index 873e5995..aa5b1442 100644 --- a/src/main/java/com/auth0/client/mgmt/SessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/SessionsClient.java @@ -61,6 +61,13 @@ public UpdateSessionResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update session information. + */ + public UpdateSessionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update session information. */ diff --git a/src/main/java/com/auth0/client/mgmt/StatsClient.java b/src/main/java/com/auth0/client/mgmt/StatsClient.java index 7b32b9d3..83666d48 100644 --- a/src/main/java/com/auth0/client/mgmt/StatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/StatsClient.java @@ -47,6 +47,13 @@ public List getDaily() { return this.rawClient.getDaily().body(); } + /** + * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. + */ + public List getDaily(RequestOptions requestOptions) { + return this.rawClient.getDaily(requestOptions).body(); + } + /** * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. */ diff --git a/src/main/java/com/auth0/client/mgmt/TicketsClient.java b/src/main/java/com/auth0/client/mgmt/TicketsClient.java index 66dadb12..68bc0e5e 100644 --- a/src/main/java/com/auth0/client/mgmt/TicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/TicketsClient.java @@ -50,6 +50,14 @@ public ChangePasswordTicketResponseContent changePassword() { return this.rawClient.changePassword().body(); } + /** + * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. + *

    Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

    + */ + public ChangePasswordTicketResponseContent changePassword(RequestOptions requestOptions) { + return this.rawClient.changePassword(requestOptions).body(); + } + /** * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. *

    Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

    diff --git a/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java index 6b8acbe7..8f353d5f 100644 --- a/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java @@ -32,13 +32,13 @@ public RawTokenExchangeProfilesClient withRawResponse() { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -46,13 +46,27 @@ public SyncPagingIterable list() { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of all Token Exchange Profiles available in your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    + *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(TokenExchangeProfilesListRequest request) { return this.rawClient.list(request).body(); @@ -60,13 +74,13 @@ public SyncPagingIterable list(TokenExchang /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -75,7 +89,7 @@ public SyncPagingIterable list( /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CreateTokenExchangeProfileResponseContent create(CreateTokenExchangeProfileRequestContent request) { return this.rawClient.create(request).body(); @@ -83,7 +97,7 @@ public CreateTokenExchangeProfileResponseContent create(CreateTokenExchangeProfi /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CreateTokenExchangeProfileResponseContent create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { @@ -92,7 +106,7 @@ public CreateTokenExchangeProfileResponseContent create( /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public GetTokenExchangeProfileResponseContent get(String id) { return this.rawClient.get(id).body(); @@ -100,7 +114,7 @@ public GetTokenExchangeProfileResponseContent get(String id) { /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public GetTokenExchangeProfileResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -108,7 +122,7 @@ public GetTokenExchangeProfileResponseContent get(String id, RequestOptions requ /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void delete(String id) { this.rawClient.delete(id).body(); @@ -116,7 +130,7 @@ public void delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); @@ -124,7 +138,7 @@ public void delete(String id, RequestOptions requestOptions) { /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void update(String id) { this.rawClient.update(id).body(); @@ -132,7 +146,15 @@ public void update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    + */ + public void update(String id, RequestOptions requestOptions) { + this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void update(String id, UpdateTokenExchangeProfileRequestContent request) { this.rawClient.update(id, request).body(); @@ -140,7 +162,7 @@ public void update(String id, UpdateTokenExchangeProfileRequestContent request) /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void update(String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { this.rawClient.update(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java index 854cbbd4..d47cf62d 100644 --- a/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -133,6 +140,13 @@ public UpdateUserAttributeProfileResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. + */ + public UpdateUserAttributeProfileResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ diff --git a/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java index 4c3e3421..b6ca4b17 100644 --- a/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java @@ -29,7 +29,7 @@ public RawUserBlocksClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ListUserBlocksByIdentifierResponseContent listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -37,7 +37,7 @@ public ListUserBlocksByIdentifierResponseContent listByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ListUserBlocksByIdentifierResponseContent listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -45,16 +45,16 @@ public ListUserBlocksByIdentifierResponseContent listByIdentifier( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void deleteByIdentifier(DeleteUserBlocksByIdentifierRequestParameters request) { this.rawClient.deleteByIdentifier(request).body(); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -62,21 +62,28 @@ public void deleteByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ListUserBlocksResponseContent list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public ListUserBlocksResponseContent list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ListUserBlocksResponseContent list(String id, ListUserBlocksRequestParameters request) { return this.rawClient.list(id, request).body(); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ListUserBlocksResponseContent list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -84,16 +91,16 @@ public ListUserBlocksResponseContent list( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java index ede7274c..6cd0ec7d 100644 --- a/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java @@ -28,21 +28,28 @@ public RawUserGrantsClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve the grants associated with your account. */ public SyncPagingIterable list(ListUserGrantsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public SyncPagingIterable list(ListUserGrantsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/UsersClient.java b/src/main/java/com/auth0/client/mgmt/UsersClient.java index cac37161..39c83c13 100644 --- a/src/main/java/com/auth0/client/mgmt/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/UsersClient.java @@ -108,10 +108,10 @@ public RawUsersClient withRawResponse() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -126,10 +126,28 @@ public SyncPagingIterable list() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public SyncPagingIterable list(ListUsersRequestParameters request) { return this.rawClient.list(request).body(); @@ -144,10 +162,10 @@ public SyncPagingIterable list(ListUsersRequestParameters re *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public SyncPagingIterable list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -155,16 +173,16 @@ public SyncPagingIterable list( } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CreateUserResponseContent create(CreateUserRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CreateUserResponseContent create(CreateUserRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); @@ -190,35 +208,42 @@ public List listUsersByEmail( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public GetUserResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public GetUserResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public GetUserResponseContent get(String id, GetUserRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public GetUserResponseContent get(String id, GetUserRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); @@ -227,57 +252,57 @@ public void delete(String id, RequestOptions requestOptions) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -285,7 +310,7 @@ public void delete(String id, RequestOptions requestOptions) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public UpdateUserResponseContent update(String id) { return this.rawClient.update(id).body(); @@ -294,57 +319,124 @@ public UpdateUserResponseContent update(String id) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + */ + public UpdateUserResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -352,7 +444,7 @@ public UpdateUserResponseContent update(String id) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public UpdateUserResponseContent update(String id, UpdateUserRequestContent request) { return this.rawClient.update(id, request).body(); @@ -361,57 +453,57 @@ public UpdateUserResponseContent update(String id, UpdateUserRequestContent requ /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -419,7 +511,7 @@ public UpdateUserResponseContent update(String id, UpdateUserRequestContent requ
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public UpdateUserResponseContent update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { @@ -427,14 +519,14 @@ public UpdateUserResponseContent update( } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public RegenerateUsersRecoveryCodeResponseContent regenerateRecoveryCode(String id) { return this.rawClient.regenerateRecoveryCode(id).body(); } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public RegenerateUsersRecoveryCodeResponseContent regenerateRecoveryCode(String id, RequestOptions requestOptions) { return this.rawClient.regenerateRecoveryCode(id, requestOptions).body(); @@ -447,6 +539,13 @@ public void revokeAccess(String id) { this.rawClient.revokeAccess(id).body(); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public void revokeAccess(String id, RequestOptions requestOptions) { + this.rawClient.revokeAccess(id, requestOptions).body(); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java index 3352e6f8..c266fa86 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java @@ -49,6 +49,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a paginated list of all Actions Modules with optional filtering and totals. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -114,6 +121,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update properties of an existing Actions Module, such as code, dependencies, or secrets. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -137,6 +151,14 @@ public CompletableFuture> listActions(Str return this.rawClient.listActions(id).thenApply(response -> response.body()); } + /** + * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. + */ + public CompletableFuture> listActions( + String id, RequestOptions requestOptions) { + return this.rawClient.listActions(id, requestOptions).thenApply(response -> response.body()); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java index 509f6c7e..a04c39b7 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java @@ -47,13 +47,17 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/executions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java index f0c070a2..1ef05d17 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java @@ -63,6 +63,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(GetActionModulesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -82,6 +90,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -180,10 +193,14 @@ public CompletableFuture> create( CreateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/modules") - .build(); + .addPathSegments("actions/modules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -192,7 +209,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,13 +384,17 @@ public CompletableFuture> delete(String id) { * Permanently delete an Actions Module. This will fail if the module is still in use by any actions. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -448,6 +473,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateActionModuleRequestContent.builder().build(), requestOptions); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -461,11 +494,15 @@ public CompletableFuture> update( String id, UpdateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -474,7 +511,7 @@ public CompletableFuture>> listActions( + String id, RequestOptions requestOptions) { + return listActions(id, GetActionModuleActionsRequestParameters.builder().build(), requestOptions); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ @@ -579,6 +624,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -683,12 +733,16 @@ public CompletableFuture> rollback( String id, RollbackActionModuleRequestParameters request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("rollback") - .build(); + .addPathSegments("rollback"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -697,7 +751,7 @@ public CompletableFuture> list( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/triggers") - .build(); + .addPathSegments("actions/triggers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java index 40becad9..091fd31a 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java @@ -55,6 +55,14 @@ public CompletableFuture>> list( + String actionId, RequestOptions requestOptions) { + return list(actionId, ListActionVersionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -76,6 +84,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,15 +187,19 @@ public CompletableFuture> get( String actionId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -261,6 +278,14 @@ public CompletableFutureabsent()); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public CompletableFuture> deploy( + String actionId, String id, RequestOptions requestOptions) { + return deploy(actionId, id, OptionalNullable.absent(), requestOptions); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ @@ -277,14 +302,18 @@ public CompletableFuture request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -296,7 +325,7 @@ public CompletableFuture> list(String actionId return this.rawClient.list(actionId).thenApply(response -> response.body()); } + /** + * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. + */ + public CompletableFuture> list(String actionId, RequestOptions requestOptions) { + return this.rawClient.list(actionId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -76,6 +83,14 @@ public CompletableFuture deploy(String actio return this.rawClient.deploy(actionId, id).thenApply(response -> response.body()); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public CompletableFuture deploy( + String actionId, String id, RequestOptions requestOptions) { + return this.rawClient.deploy(actionId, id, requestOptions).thenApply(response -> response.body()); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java index ab5b9c43..a336ed4c 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java @@ -48,6 +48,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a paginated list of all Actions Modules with optional filtering and totals. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -113,6 +120,13 @@ public UpdateActionModuleResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update properties of an existing Actions Module, such as code, dependencies, or secrets. + */ + public UpdateActionModuleResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -135,6 +149,13 @@ public SyncPagingIterable listActions(String id) { return this.rawClient.listActions(id).body(); } + /** + * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. + */ + public SyncPagingIterable listActions(String id, RequestOptions requestOptions) { + return this.rawClient.listActions(id, requestOptions).body(); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java index 08eef45f..33f89ebd 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java @@ -42,13 +42,17 @@ public ManagementApiHttpResponse get(String i * Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/executions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java index e212f80b..ec533552 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java @@ -58,6 +58,13 @@ public ManagementApiHttpResponse> list( return list(GetActionModulesRequestParameters.builder().build()); } + /** + * Retrieve a paginated list of all Actions Modules with optional filtering and totals. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(GetActionModulesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -77,6 +84,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -145,10 +157,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/modules") - .build(); + .addPathSegments("actions/modules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -157,7 +173,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -216,13 +232,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve details of a specific Actions Module by its unique identifier. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -279,13 +299,17 @@ public ManagementApiHttpResponse delete(String id) { * Permanently delete an Actions Module. This will fail if the module is still in use by any actions. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -339,6 +363,14 @@ public ManagementApiHttpResponse update(Strin return update(id, UpdateActionModuleRequestContent.builder().build()); } + /** + * Update properties of an existing Actions Module, such as code, dependencies, or secrets. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateActionModuleRequestContent.builder().build(), requestOptions); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -352,11 +384,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -365,7 +401,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -423,6 +459,14 @@ public ManagementApiHttpResponse> listAct return listActions(id, GetActionModuleActionsRequestParameters.builder().build()); } + /** + * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. + */ + public ManagementApiHttpResponse> listActions( + String id, RequestOptions requestOptions) { + return listActions(id, GetActionModuleActionsRequestParameters.builder().build(), requestOptions); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ @@ -444,6 +488,11 @@ public ManagementApiHttpResponse> listAct QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -515,12 +564,16 @@ public ManagementApiHttpResponse rollback( */ public ManagementApiHttpResponse rollback( String id, RollbackActionModuleRequestParameters request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("rollback") - .build(); + .addPathSegments("rollback"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -529,7 +582,7 @@ public ManagementApiHttpResponse rollback( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java index 66437cc7..2a673f3e 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java @@ -41,12 +41,16 @@ public ManagementApiHttpResponse list() { * Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. */ public ManagementApiHttpResponse list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/triggers") - .build(); + .addPathSegments("actions/triggers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java index 6fb609ad..21866d53 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java @@ -50,6 +50,14 @@ public ManagementApiHttpResponse> list(String return list(actionId, ListActionVersionsRequestParameters.builder().build()); } + /** + * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. + */ + public ManagementApiHttpResponse> list( + String actionId, RequestOptions requestOptions) { + return list(actionId, ListActionVersionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -71,6 +79,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -138,15 +151,19 @@ public ManagementApiHttpResponse get(String act */ public ManagementApiHttpResponse get( String actionId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -199,6 +216,14 @@ public ManagementApiHttpResponse deploy(Stri return deploy(actionId, id, OptionalNullable.absent()); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public ManagementApiHttpResponse deploy( + String actionId, String id, RequestOptions requestOptions) { + return deploy(actionId, id, OptionalNullable.absent(), requestOptions); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ @@ -215,14 +240,18 @@ public ManagementApiHttpResponse deploy( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -234,7 +263,7 @@ public ManagementApiHttpResponse deploy( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java index 17c991c9..01102e01 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java @@ -37,6 +37,13 @@ public SyncPagingIterable list(String actionId) { return this.rawClient.list(actionId).body(); } + /** + * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. + */ + public SyncPagingIterable list(String actionId, RequestOptions requestOptions) { + return this.rawClient.list(actionId, requestOptions).body(); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -73,6 +80,13 @@ public DeployActionVersionResponseContent deploy(String actionId, String id) { return this.rawClient.deploy(actionId, id).body(); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public DeployActionVersionResponseContent deploy(String actionId, String id, RequestOptions requestOptions) { + return this.rawClient.deploy(actionId, id, requestOptions).body(); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java index 7872850b..b22e064a 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java @@ -54,6 +54,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, GetActionModuleVersionsRequestParameters.builder().build(), requestOptions); + } + /** * List all published versions of a specific Actions Module. */ @@ -75,6 +83,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -178,14 +191,18 @@ public CompletableFuture> create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("versions") - .build(); + .addPathSegments("versions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -274,15 +291,19 @@ public CompletableFuture> get( String id, String versionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) .addPathSegments("versions") - .addPathSegment(versionId) - .build(); + .addPathSegment(versionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java index 651e6787..e6a5eca5 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java @@ -36,6 +36,13 @@ public CompletableFuture> list(String id return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * List all published versions of a specific Actions Module. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * List all published versions of a specific Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java index 79a0142d..764b3014 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java @@ -49,6 +49,14 @@ public ManagementApiHttpResponse> list(S return list(id, GetActionModuleVersionsRequestParameters.builder().build()); } + /** + * List all published versions of a specific Actions Module. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, GetActionModuleVersionsRequestParameters.builder().build(), requestOptions); + } + /** * List all published versions of a specific Actions Module. */ @@ -70,6 +78,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -141,14 +154,18 @@ public ManagementApiHttpResponse creat */ public ManagementApiHttpResponse create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("versions") - .build(); + .addPathSegments("versions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -210,15 +227,19 @@ public ManagementApiHttpResponse get(Stri */ public ManagementApiHttpResponse get( String id, String versionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) .addPathSegments("versions") - .addPathSegment(versionId) - .build(); + .addPathSegment(versionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java index 9e750b56..0d97fb09 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java @@ -35,6 +35,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * List all published versions of a specific Actions Module. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * List all published versions of a specific Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java index b8958aa6..6fdf1c4d 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public GetActionModuleVersionsRequestParameters build() { return new GetActionModuleVersionsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java index db6d66bc..b557a63d 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java @@ -36,6 +36,13 @@ public CompletableFuture> list(String triggerI return this.rawClient.list(triggerId).thenApply(response -> response.body()); } + /** + * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. + */ + public CompletableFuture> list(String triggerId, RequestOptions requestOptions) { + return this.rawClient.list(triggerId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -59,6 +66,14 @@ public CompletableFuture updateMany(String return this.rawClient.updateMany(triggerId).thenApply(response -> response.body()); } + /** + * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. + */ + public CompletableFuture updateMany( + String triggerId, RequestOptions requestOptions) { + return this.rawClient.updateMany(triggerId, requestOptions).thenApply(response -> response.body()); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java index 8e82915d..adb6d141 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java @@ -53,6 +53,15 @@ public CompletableFuture>> list( + String triggerId, RequestOptions requestOptions) { + return list( + triggerId, ListActionTriggerBindingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -74,6 +83,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,6 +183,15 @@ public CompletableFuture> updateMany( + String triggerId, RequestOptions requestOptions) { + return updateMany( + triggerId, UpdateActionBindingsRequestContent.builder().build(), requestOptions); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ @@ -182,12 +205,16 @@ public CompletableFuture> updateMany( String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") .addPathSegment(triggerId) - .addPathSegments("bindings") - .build(); + .addPathSegments("bindings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -196,7 +223,7 @@ public CompletableFuture list(String triggerId) { return this.rawClient.list(triggerId).body(); } + /** + * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. + */ + public SyncPagingIterable list(String triggerId, RequestOptions requestOptions) { + return this.rawClient.list(triggerId, requestOptions).body(); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -58,6 +65,13 @@ public UpdateActionBindingsResponseContent updateMany(String triggerId) { return this.rawClient.updateMany(triggerId).body(); } + /** + * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. + */ + public UpdateActionBindingsResponseContent updateMany(String triggerId, RequestOptions requestOptions) { + return this.rawClient.updateMany(triggerId, requestOptions).body(); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java index 31dba393..ed8f6897 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java @@ -48,6 +48,15 @@ public ManagementApiHttpResponse> list(String triggerId, ListActionTriggerBindingsRequestParameters.builder().build()); } + /** + * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. + */ + public ManagementApiHttpResponse> list( + String triggerId, RequestOptions requestOptions) { + return list( + triggerId, ListActionTriggerBindingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -69,6 +78,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -133,6 +147,15 @@ public ManagementApiHttpResponse updateMany triggerId, UpdateActionBindingsRequestContent.builder().build()); } + /** + * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. + */ + public ManagementApiHttpResponse updateMany( + String triggerId, RequestOptions requestOptions) { + return updateMany( + triggerId, UpdateActionBindingsRequestContent.builder().build(), requestOptions); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ @@ -146,12 +169,16 @@ public ManagementApiHttpResponse updateMany */ public ManagementApiHttpResponse updateMany( String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") .addPathSegment(triggerId) - .addPathSegments("bindings") - .build(); + .addPathSegments("bindings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +187,7 @@ public ManagementApiHttpResponse updateMany throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java index a01a1b30..c1e52d34 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public ListActionTriggerBindingsRequestParameters build() { return new ListActionTriggerBindingsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java index c65556ba..a36bdde2 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java @@ -101,5 +101,15 @@ public Builder bindings(List bindings) { public UpdateActionBindingsRequestContent build() { return new UpdateActionBindingsRequestContent(bindings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java index f2e77d21..8a8359a2 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java @@ -156,6 +156,10 @@ public interface CodeStage { public interface _FinalStage { CreateActionModuleRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The secrets to associate with the action module.

    */ @@ -324,5 +328,17 @@ public CreateActionModuleRequestContent build() { return new CreateActionModuleRequestContent( name, code, secrets, dependencies, apiVersion, publish, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java index 363e8755..50678f72 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public GetActionModuleActionsRequestParameters build() { return new GetActionModuleActionsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java index 1c3fdddf..bdccb9af 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java @@ -173,5 +173,15 @@ public Builder perPage(Nullable perPage) { public GetActionModulesRequestParameters build() { return new GetActionModulesRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java index 637473e2..4effc7a4 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public ListActionVersionsRequestParameters build() { return new ListActionVersionsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java index dfd5cac4..987bbffb 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java @@ -77,6 +77,10 @@ public interface ModuleVersionIdStage { public interface _FinalStage { RollbackActionModuleRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage moduleVersionId(@NotNull String moduleVersionId) { public RollbackActionModuleRequestParameters build() { return new RollbackActionModuleRequestParameters(moduleVersionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java index 0df1aa38..0a56f54d 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java @@ -160,5 +160,15 @@ public Builder dependencies(List dependencies) { public UpdateActionModuleRequestContent build() { return new UpdateActionModuleRequestContent(code, secrets, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java index 06f78472..3210fc85 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java @@ -25,28 +25,28 @@ public AsyncRawBlocksClient withRawResponse() { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture checkIp(String id) { return this.rawClient.checkIp(id).thenApply(response -> response.body()); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture checkIp(String id, RequestOptions requestOptions) { return this.rawClient.checkIp(id, requestOptions).thenApply(response -> response.body()); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture unblockIp(String id) { return this.rawClient.unblockIp(id).thenApply(response -> response.body()); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture unblockIp(String id, RequestOptions requestOptions) { return this.rawClient.unblockIp(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java index bf00da07..81042106 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java @@ -35,23 +35,27 @@ public AsyncRawBlocksClient(ClientOptions clientOptions) { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture> checkIp(String id) { return checkIp(id, null); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture> checkIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -119,23 +123,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture> unblockIp(String id) { return unblockIp(id, null); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture> unblockIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java index 314e48ad..1eddba52 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java @@ -24,28 +24,28 @@ public RawBlocksClient withRawResponse() { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public void checkIp(String id) { this.rawClient.checkIp(id).body(); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public void checkIp(String id, RequestOptions requestOptions) { this.rawClient.checkIp(id, requestOptions).body(); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public void unblockIp(String id) { this.rawClient.unblockIp(id).body(); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public void unblockIp(String id, RequestOptions requestOptions) { this.rawClient.unblockIp(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java index c712fc49..4622565c 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java @@ -31,23 +31,27 @@ public RawBlocksClient(ClientOptions clientOptions) { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public ManagementApiHttpResponse checkIp(String id) { return checkIp(id, null); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public ManagementApiHttpResponse checkIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -92,23 +96,27 @@ public ManagementApiHttpResponse checkIp(String id, RequestOptions request } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public ManagementApiHttpResponse unblockIp(String id) { return unblockIp(id, null); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public ManagementApiHttpResponse unblockIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java index 523b9ff7..d3b57257 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java @@ -48,6 +48,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update the Bot Detection configuration of your tenant. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update the Bot Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java index ddb5d75c..dfd97258 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java @@ -48,6 +48,14 @@ public CompletableFuture return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update details of the Breached Password Detection configuration of your tenant. + */ + public CompletableFuture update( + RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java index 4a54b4d7..4f820ea7 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java @@ -48,6 +48,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update the Brute-force Protection configuration of your tenant. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update the Brute-force Protection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java index 64ccef63..bde5d1a0 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java @@ -48,6 +48,13 @@ public CompletableFuture update() return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update existing CAPTCHA configuration for your client. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update existing CAPTCHA configuration for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java index c8d7f6f8..f86083c2 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -129,6 +133,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateBotDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Bot Detection configuration of your tenant. */ @@ -142,10 +154,14 @@ public CompletableFuture> update( UpdateBotDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -154,7 +170,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -125,6 +129,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { UpdateBreachedPasswordDetectionSettingsRequestContent.builder().build()); } + /** + * Update details of the Breached Password Detection configuration of your tenant. + */ + public CompletableFuture> update( + RequestOptions requestOptions) { + return update( + UpdateBreachedPasswordDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ @@ -138,10 +151,14 @@ public CompletableFuture> update( UpdateBreachedPasswordDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -150,7 +167,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -123,6 +127,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateBruteForceSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Brute-force Protection configuration of your tenant. */ @@ -136,10 +148,14 @@ public CompletableFuture> update( UpdateBruteForceSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -148,7 +164,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -128,6 +132,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateAttackProtectionCaptchaRequestContent.builder().build(), requestOptions); + } + /** * Update existing CAPTCHA configuration for your client. */ @@ -141,10 +153,14 @@ public CompletableFuture> update( UpdateAttackProtectionCaptchaRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -153,7 +169,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,6 +128,15 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update( + UpdateSuspiciousIpThrottlingSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the details of the Suspicious IP Throttling configuration of your tenant. */ @@ -137,10 +150,14 @@ public CompletableFuture> update( UpdateSuspiciousIpThrottlingSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -149,7 +166,7 @@ public CompletableFuture up return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update the details of the Suspicious IP Throttling configuration of your tenant. + */ + public CompletableFuture update( + RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update the details of the Suspicious IP Throttling configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java index 471691e2..64a4c11b 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java @@ -47,6 +47,13 @@ public UpdateBotDetectionSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update the Bot Detection configuration of your tenant. + */ + public UpdateBotDetectionSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update the Bot Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java index a2746f1e..463a5de5 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java @@ -47,6 +47,13 @@ public UpdateBreachedPasswordDetectionSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update details of the Breached Password Detection configuration of your tenant. + */ + public UpdateBreachedPasswordDetectionSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java index be1c4a72..c512fe47 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java @@ -47,6 +47,13 @@ public UpdateBruteForceSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update the Brute-force Protection configuration of your tenant. + */ + public UpdateBruteForceSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update the Brute-force Protection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java index 8e11badf..21281e33 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java @@ -47,6 +47,13 @@ public UpdateAttackProtectionCaptchaResponseContent update() { return this.rawClient.update().body(); } + /** + * Update existing CAPTCHA configuration for your client. + */ + public UpdateAttackProtectionCaptchaResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update existing CAPTCHA configuration for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java index 8ba3bfe6..d098bc9f 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get() { * Get the Bot Detection configuration of your tenant. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -102,6 +106,13 @@ public ManagementApiHttpResponse upda return update(UpdateBotDetectionSettingsRequestContent.builder().build()); } + /** + * Update the Bot Detection configuration of your tenant. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateBotDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Bot Detection configuration of your tenant. */ @@ -115,10 +126,14 @@ public ManagementApiHttpResponse upda */ public ManagementApiHttpResponse update( UpdateBotDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -127,7 +142,7 @@ public ManagementApiHttpResponse upda throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java index 7839a7ff..07cca9b0 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,6 +104,15 @@ public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update( + UpdateBreachedPasswordDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ @@ -113,10 +126,14 @@ public ManagementApiHttpResponse update( UpdateBreachedPasswordDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -125,7 +142,7 @@ public ManagementApiHttpResponse get() { * Retrieve details of the Brute-force Protection configuration of your tenant. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -98,6 +102,13 @@ public ManagementApiHttpResponse update return update(UpdateBruteForceSettingsRequestContent.builder().build()); } + /** + * Update the Brute-force Protection configuration of your tenant. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateBruteForceSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Brute-force Protection configuration of your tenant. */ @@ -111,10 +122,14 @@ public ManagementApiHttpResponse update */ public ManagementApiHttpResponse update( UpdateBruteForceSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -123,7 +138,7 @@ public ManagementApiHttpResponse update throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java index e88cc0bd..dcc0b062 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse get( * Get the CAPTCHA configuration for your client. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -101,6 +105,14 @@ public ManagementApiHttpResponse u return update(UpdateAttackProtectionCaptchaRequestContent.builder().build()); } + /** + * Update existing CAPTCHA configuration for your client. + */ + public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update(UpdateAttackProtectionCaptchaRequestContent.builder().build(), requestOptions); + } + /** * Update existing CAPTCHA configuration for your client. */ @@ -114,10 +126,14 @@ public ManagementApiHttpResponse u */ public ManagementApiHttpResponse update( UpdateAttackProtectionCaptchaRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -126,7 +142,7 @@ public ManagementApiHttpResponse u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java index d1ce48e4..d4f349a6 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,6 +104,15 @@ public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update( + UpdateSuspiciousIpThrottlingSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the details of the Suspicious IP Throttling configuration of your tenant. */ @@ -113,10 +126,14 @@ public ManagementApiHttpResponse update( UpdateSuspiciousIpThrottlingSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -125,7 +142,7 @@ public ManagementApiHttpResponse additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java index ae360f6a..ecaafcb3 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java @@ -239,5 +239,15 @@ public UpdateBotDetectionSettingsRequestContent build() { monitoringModeEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java index ddd475ca..d7a464b9 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java @@ -62,7 +62,7 @@ public Optional getEnabled() { /** * @return Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>. + * Possible values: block, user_notification, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -71,7 +71,7 @@ public Optional> getShields() { /** * @return When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>. + * Possible values: immediately, daily, weekly, monthly. */ @JsonProperty("admin_notification_frequency") public Optional> getAdminNotificationFrequency() { @@ -165,7 +165,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>.

    + * Possible values: block, user_notification, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -180,7 +180,7 @@ public Builder shields(List shields) { /** *

    When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>.

    + * Possible values: immediately, daily, weekly, monthly.

    */ @JsonSetter(value = "admin_notification_frequency", nulls = Nulls.SKIP) public Builder adminNotificationFrequency( @@ -221,5 +221,15 @@ public UpdateBreachedPasswordDetectionSettingsRequestContent build() { return new UpdateBreachedPasswordDetectionSettingsRequestContent( enabled, shields, adminNotificationFrequency, method, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java index 39ac83e7..9668b7de 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java @@ -60,7 +60,7 @@ public Optional getEnabled() { /** * @return Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>. + * Possible values: block, user_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -164,7 +164,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>.

    + * Possible values: block, user_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -220,5 +220,15 @@ public UpdateBruteForceSettingsRequestContent build() { return new UpdateBruteForceSettingsRequestContent( enabled, shields, allowlist, mode, maxAttempts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java index de916780..1ceca444 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java @@ -56,7 +56,7 @@ public Optional getEnabled() { /** * @return Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -145,7 +145,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -184,5 +184,15 @@ public UpdateSuspiciousIpThrottlingSettingsRequestContent build() { return new UpdateSuspiciousIpThrottlingSettingsRequestContent( enabled, shields, allowlist, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java index b7a4f943..df2bb17b 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java @@ -46,12 +46,16 @@ public CompletableFuture> getUniversalLogin( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,16 +128,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -144,7 +148,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture> updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request) { @@ -153,16 +157,16 @@ public CompletableFuture> updateUniversalLogin( /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -173,14 +177,18 @@ public CompletableFuture> updateUniversalLogin(
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture> updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +197,7 @@ public CompletableFuture> updateUniversalLogin( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -267,12 +275,16 @@ public CompletableFuture> deleteUniversalLogin() } public CompletableFuture> deleteUniversalLogin(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java index 618a45b5..405a64b2 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java @@ -56,10 +56,14 @@ public CompletableFuture> create( CreateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes") - .build(); + .addPathSegments("branding/themes"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -68,7 +72,7 @@ public CompletableFuture> getDefault( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes/default") - .build(); + .addPathSegments("branding/themes/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -235,13 +243,17 @@ public CompletableFuture> get( String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -318,13 +330,17 @@ public CompletableFuture> delete(String themeId) * Delete branding theme. */ public CompletableFuture> delete(String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -399,11 +415,15 @@ public CompletableFuture> update( String themeId, UpdateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -412,7 +432,7 @@ public CompletableFuture getUniversalL /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -57,7 +57,7 @@ public CompletableFuture getUniversalL
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent request) { return this.rawClient.updateUniversalLogin(request).thenApply(response -> response.body()); @@ -65,16 +65,16 @@ public CompletableFuture updateUniversalLogin(UpdateUniversalLoginTemplate /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -85,7 +85,7 @@ public CompletableFuture updateUniversalLogin(UpdateUniversalLoginTemplate
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java index 85a5a3f0..03751a95 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java @@ -42,12 +42,16 @@ public ManagementApiHttpResponse getUn public ManagementApiHttpResponse getUniversalLogin( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -96,16 +100,16 @@ public ManagementApiHttpResponse getUn /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -116,7 +120,7 @@ public ManagementApiHttpResponse getUn
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public ManagementApiHttpResponse updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent request) { return updateUniversalLogin(request, null); @@ -124,16 +128,16 @@ public ManagementApiHttpResponse updateUniversalLogin(UpdateUniversalLogin /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -144,14 +148,18 @@ public ManagementApiHttpResponse updateUniversalLogin(UpdateUniversalLogin
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public ManagementApiHttpResponse updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +168,7 @@ public ManagementApiHttpResponse updateUniversalLogin( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -213,12 +221,16 @@ public ManagementApiHttpResponse deleteUniversalLogin() { } public ManagementApiHttpResponse deleteUniversalLogin(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java index a16997d1..8b9de65b 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java @@ -52,10 +52,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes") - .build(); + .addPathSegments("branding/themes"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -64,7 +68,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -123,12 +127,16 @@ public ManagementApiHttpResponse getDefa * Retrieve default branding theme. */ public ManagementApiHttpResponse getDefault(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes/default") - .build(); + .addPathSegments("branding/themes/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -184,13 +192,17 @@ public ManagementApiHttpResponse get(String the */ public ManagementApiHttpResponse get( String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -244,13 +256,17 @@ public ManagementApiHttpResponse delete(String themeId) { * Delete branding theme. */ public ManagementApiHttpResponse delete(String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -304,11 +320,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String themeId, UpdateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -317,7 +337,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java index 06ec08d5..2e27e21d 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java @@ -35,16 +35,16 @@ public GetUniversalLoginTemplateResponseContent getUniversalLogin(RequestOptions /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -55,7 +55,7 @@ public GetUniversalLoginTemplateResponseContent getUniversalLogin(RequestOptions
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public void updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent request) { this.rawClient.updateUniversalLogin(request).body(); @@ -63,16 +63,16 @@ public void updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent requ /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -83,7 +83,7 @@ public void updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent requ
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public void updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java index 2c88e697..5c76b994 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java @@ -34,14 +34,21 @@ public AsyncRawProvidersClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture list( ListBrandingPhoneProvidersRequestParameters request) { @@ -49,7 +56,7 @@ public CompletableFuture list( } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -57,8 +64,8 @@ public CompletableFuture list( } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture create( CreateBrandingPhoneProviderRequestContent request) { @@ -66,8 +73,8 @@ public CompletableFuture create( } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { @@ -75,14 +82,14 @@ public CompletableFuture create( } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -103,16 +110,25 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -120,8 +136,8 @@ public CompletableFuture update( } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java index ea8a53c5..820cee52 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java @@ -48,14 +48,22 @@ public AsyncRawProvidersClient(ClientOptions clientOptions) { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> list() { return list(ListBrandingPhoneProvidersRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture> list( + RequestOptions requestOptions) { + return list(ListBrandingPhoneProvidersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> list( ListBrandingPhoneProvidersRequestParameters request) { @@ -63,7 +71,7 @@ public CompletableFuturephone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -74,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -142,8 +155,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> create( CreateBrandingPhoneProviderRequestContent request) { @@ -151,15 +164,19 @@ public CompletableFuturephone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/providers") - .build(); + .addPathSegments("branding/phone/providers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -168,7 +185,7 @@ public CompletableFuturephone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get(String id) { return get(id, null); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -340,13 +361,17 @@ public CompletableFuture> delete(String id) { * Delete the configured phone provider. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -409,16 +434,25 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> update(String id) { return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build()); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -426,16 +460,20 @@ public CompletableFuturephone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -444,7 +482,7 @@ public CompletableFuture> test( String id, CreatePhoneProviderSendTestRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -542,7 +584,7 @@ public CompletableFuture> list( + RequestOptions requestOptions) { + return list(ListPhoneTemplatesRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture> list( ListPhoneTemplatesRequestParameters request) { return list(request, null); @@ -66,6 +71,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -137,6 +147,11 @@ public CompletableFuture> create( + RequestOptions requestOptions) { + return create(CreatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> create( CreatePhoneTemplateRequestContent request) { return create(request, null); @@ -144,10 +159,14 @@ public CompletableFuture> create( CreatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/templates") - .build(); + .addPathSegments("branding/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +175,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -316,13 +339,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -393,6 +420,11 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdatePhoneTemplateRequestContent request) { return update(id, request, null); @@ -400,11 +432,15 @@ public CompletableFuture> update( String id, UpdatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -413,7 +449,7 @@ public CompletableFuture> reset( String id, Object request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("reset") - .build(); + .addPathSegments("reset"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -506,7 +546,7 @@ public CompletableFuture> test( String id, CreatePhoneTemplateTestNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -594,7 +638,7 @@ public CompletableFuture list() { return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture list(ListPhoneTemplatesRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } @@ -51,6 +55,10 @@ public CompletableFuture create() { return this.rawClient.create().thenApply(response -> response.body()); } + public CompletableFuture create(RequestOptions requestOptions) { + return this.rawClient.create(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture create(CreatePhoneTemplateRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } @@ -80,6 +88,10 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( String id, UpdatePhoneTemplateRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java index c762a0b4..8b845ec7 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java @@ -33,21 +33,28 @@ public RawProvidersClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ListBrandingPhoneProvidersResponseContent list() { return this.rawClient.list().body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public ListBrandingPhoneProvidersResponseContent list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ListBrandingPhoneProvidersResponseContent list(ListBrandingPhoneProvidersRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ListBrandingPhoneProvidersResponseContent list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -55,16 +62,16 @@ public ListBrandingPhoneProvidersResponseContent list( } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CreateBrandingPhoneProviderResponseContent create(CreateBrandingPhoneProviderRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CreateBrandingPhoneProviderResponseContent create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { @@ -72,14 +79,14 @@ public CreateBrandingPhoneProviderResponseContent create( } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public GetBrandingPhoneProviderResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public GetBrandingPhoneProviderResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -100,16 +107,24 @@ public void delete(String id, RequestOptions requestOptions) { } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public UpdateBrandingPhoneProviderResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public UpdateBrandingPhoneProviderResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public UpdateBrandingPhoneProviderResponseContent update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -117,8 +132,8 @@ public UpdateBrandingPhoneProviderResponseContent update( } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public UpdateBrandingPhoneProviderResponseContent update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java index 1e3d469e..a057218b 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java @@ -44,14 +44,21 @@ public RawProvidersClient(ClientOptions clientOptions) { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse list() { return list(ListBrandingPhoneProvidersRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public ManagementApiHttpResponse list(RequestOptions requestOptions) { + return list(ListBrandingPhoneProvidersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse list( ListBrandingPhoneProvidersRequestParameters request) { @@ -59,7 +66,7 @@ public ManagementApiHttpResponse list } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -70,6 +77,11 @@ public ManagementApiHttpResponse list QueryStringMapper.addQueryParameter( httpUrl, "disabled", request.getDisabled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -116,8 +128,8 @@ public ManagementApiHttpResponse list } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse create( CreateBrandingPhoneProviderRequestContent request) { @@ -125,15 +137,19 @@ public ManagementApiHttpResponse cre } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/providers") - .build(); + .addPathSegments("branding/phone/providers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -142,7 +158,7 @@ public ManagementApiHttpResponse cre throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -191,24 +207,28 @@ public ManagementApiHttpResponse cre } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get(String id) { return get(id, null); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -266,13 +286,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete the configured phone provider. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -314,16 +338,25 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build()); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -331,16 +364,20 @@ public ManagementApiHttpResponse upd } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -349,7 +386,7 @@ public ManagementApiHttpResponse upd throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -407,12 +444,16 @@ public ManagementApiHttpResponse tes public ManagementApiHttpResponse test( String id, CreatePhoneProviderSendTestRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -421,7 +462,7 @@ public ManagementApiHttpResponse tes throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java index eeada490..3a44e5ea 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java @@ -48,6 +48,10 @@ public ManagementApiHttpResponse list() { return list(ListPhoneTemplatesRequestParameters.builder().build()); } + public ManagementApiHttpResponse list(RequestOptions requestOptions) { + return list(ListPhoneTemplatesRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse list( ListPhoneTemplatesRequestParameters request) { return list(request, null); @@ -62,6 +66,11 @@ public ManagementApiHttpResponse list( QueryStringMapper.addQueryParameter( httpUrl, "disabled", request.getDisabled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -111,6 +120,10 @@ public ManagementApiHttpResponse create() { return create(CreatePhoneTemplateRequestContent.builder().build()); } + public ManagementApiHttpResponse create(RequestOptions requestOptions) { + return create(CreatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse create( CreatePhoneTemplateRequestContent request) { return create(request, null); @@ -118,10 +131,14 @@ public ManagementApiHttpResponse create( public ManagementApiHttpResponse create( CreatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/templates") - .build(); + .addPathSegments("branding/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -130,7 +147,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -183,13 +200,17 @@ public ManagementApiHttpResponse get(String id) } public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -240,13 +261,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -294,6 +319,11 @@ public ManagementApiHttpResponse update(Stri return update(id, UpdatePhoneTemplateRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( String id, UpdatePhoneTemplateRequestContent request) { return update(id, request, null); @@ -301,11 +331,15 @@ public ManagementApiHttpResponse update( public ManagementApiHttpResponse update( String id, UpdatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -314,7 +348,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -368,12 +402,16 @@ public ManagementApiHttpResponse reset(String public ManagementApiHttpResponse reset( String id, Object request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("reset") - .build(); + .addPathSegments("reset"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -382,7 +420,7 @@ public ManagementApiHttpResponse reset( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -434,12 +472,16 @@ public ManagementApiHttpResponse test( String id, CreatePhoneTemplateTestNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -448,7 +490,7 @@ public ManagementApiHttpResponse additionalProperties); + /** *

    Whether the provider is enabled (false) or disabled (true).

    */ @@ -204,5 +208,17 @@ public CreateBrandingPhoneProviderRequestContent build() { return new CreateBrandingPhoneProviderRequestContent( name, disabled, configuration, credentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java index ebbbd5cc..ec802bad 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java @@ -92,6 +92,10 @@ public interface ToStage { public interface _FinalStage { CreatePhoneProviderSendTestRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage deliveryMethod(Optional deliveryMethod); _FinalStage deliveryMethod(PhoneProviderDeliveryMethodEnum deliveryMethod); @@ -144,5 +148,17 @@ public _FinalStage deliveryMethod(Optional deli public CreatePhoneProviderSendTestRequestContent build() { return new CreatePhoneProviderSendTestRequestContent(to, deliveryMethod, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java index 2d9f5467..f95ce2c3 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java @@ -147,5 +147,15 @@ public Builder content(PhoneTemplateContent content) { public CreatePhoneTemplateRequestContent build() { return new CreatePhoneTemplateRequestContent(type, disabled, content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java index 7cb0e906..30aba30f 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java @@ -92,6 +92,10 @@ public interface ToStage { public interface _FinalStage { CreatePhoneTemplateTestNotificationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage deliveryMethod(Optional deliveryMethod); _FinalStage deliveryMethod(PhoneProviderDeliveryMethodEnum deliveryMethod); @@ -144,5 +148,17 @@ public _FinalStage deliveryMethod(Optional deli public CreatePhoneTemplateTestNotificationRequestContent build() { return new CreatePhoneTemplateTestNotificationRequestContent(to, deliveryMethod, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java index 4546bbb2..0ecc30f2 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java @@ -132,5 +132,15 @@ public Builder disabled(com.auth0.client.mgmt.core.Nullable disabled) { public ListBrandingPhoneProvidersRequestParameters build() { return new ListBrandingPhoneProvidersRequestParameters(disabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java index a2186347..93eabbfa 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java @@ -132,5 +132,15 @@ public Builder disabled(com.auth0.client.mgmt.core.Nullable disabled) { public ListPhoneTemplatesRequestParameters build() { return new ListPhoneTemplatesRequestParameters(disabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java index bf8583d4..1526c7a9 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java @@ -176,5 +176,15 @@ public UpdateBrandingPhoneProviderRequestContent build() { return new UpdateBrandingPhoneProviderRequestContent( name, disabled, credentials, configuration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java index 3e19fd8f..2e720a35 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java @@ -123,5 +123,15 @@ public Builder disabled(Boolean disabled) { public UpdatePhoneTemplateRequestContent build() { return new UpdatePhoneTemplateRequestContent(content, disabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java index ccf34255..4016a847 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java @@ -149,6 +149,10 @@ public interface WidgetStage { public interface _FinalStage { CreateBrandingThemeRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Display Name

    */ @@ -248,5 +252,17 @@ public CreateBrandingThemeRequestContent build() { return new CreateBrandingThemeRequestContent( borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java index 385409f0..80369901 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java @@ -149,6 +149,10 @@ public interface WidgetStage { public interface _FinalStage { UpdateBrandingThemeRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Display Name

    */ @@ -248,5 +252,17 @@ public UpdateBrandingThemeRequestContent build() { return new UpdateBrandingThemeRequestContent( borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java index 5d0796fd..c51a51ca 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java @@ -31,6 +31,10 @@ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String id, ListClientGrantOrganizationsRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java index e5bc9afa..2e1d44c6 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java @@ -46,6 +46,11 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListClientGrantOrganizationsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String id, ListClientGrantOrganizationsRequestParameters request) { return list(id, request, null); @@ -63,6 +68,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java index a89f02ae..fcf7aa1d 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java @@ -30,6 +30,10 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + public SyncPagingIterable list(String id, ListClientGrantOrganizationsRequestParameters request) { return this.rawClient.list(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java index 8c134935..1647c113 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java @@ -41,6 +41,10 @@ public ManagementApiHttpResponse> list(String i return list(id, ListClientGrantOrganizationsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListClientGrantOrganizationsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String id, ListClientGrantOrganizationsRequestParameters request) { return list(id, request, null); @@ -58,6 +62,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java index 265a509f..489d3353 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListClientGrantOrganizationsRequestParameters build() { return new ListClientGrantOrganizationsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java index 57aec09a..a19fddd1 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java @@ -28,45 +28,60 @@ public AsyncRawConnectionsClient withRawResponse() { } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public CompletableFuture> get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture> get(String id, ConnectionsGetRequest request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture> get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java index cf5d698b..84ba1d4e 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java @@ -33,7 +33,7 @@ public AsyncRawCredentialsClient withRawResponse() { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> list(String clientId) { return this.rawClient.list(clientId).thenApply(response -> response.body()); @@ -41,7 +41,7 @@ public CompletableFuture> list(String clientId) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> list(String clientId, RequestOptions requestOptions) { return this.rawClient.list(clientId, requestOptions).thenApply(response -> response.body()); @@ -49,34 +49,34 @@ public CompletableFuture> list(String clientId, RequestOp /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture create( String clientId, PostClientCredentialRequestContent request) { @@ -85,34 +85,34 @@ public CompletableFuture create( /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { @@ -121,7 +121,7 @@ public CompletableFuture create( /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture get(String clientId, String credentialId) { return this.rawClient.get(clientId, credentialId).thenApply(response -> response.body()); @@ -129,7 +129,7 @@ public CompletableFuture get(String clientId /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture get( String clientId, String credentialId, RequestOptions requestOptions) { @@ -137,28 +137,36 @@ public CompletableFuture get( } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture delete(String clientId, String credentialId) { return this.rawClient.delete(clientId, credentialId).thenApply(response -> response.body()); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture delete(String clientId, String credentialId, RequestOptions requestOptions) { return this.rawClient.delete(clientId, credentialId, requestOptions).thenApply(response -> response.body()); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture update(String clientId, String credentialId) { return this.rawClient.update(clientId, credentialId).thenApply(response -> response.body()); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. + */ + public CompletableFuture update( + String clientId, String credentialId, RequestOptions requestOptions) { + return this.rawClient.update(clientId, credentialId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -166,7 +174,7 @@ public CompletableFuture update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture update( String clientId, diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java index 6c122714..7f52b97f 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java @@ -43,30 +43,46 @@ public AsyncRawConnectionsClient(ClientOptions clientOptions) { } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture>> get(String id) { return get(id, ConnectionsGetRequest.builder().build()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, ConnectionsGetRequest.builder().build(), requestOptions); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture>> get( String id, ConnectionsGetRequest request) { @@ -74,15 +90,15 @@ public CompletableFuture<ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture>> get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { @@ -108,6 +124,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java index 796e8605..3347a88b 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java @@ -46,7 +46,7 @@ public AsyncRawCredentialsClient(ClientOptions clientOptions) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture>> list(String clientId) { return list(clientId, null); @@ -54,18 +54,22 @@ public CompletableFuture>> list /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture>> list( String clientId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -132,34 +136,34 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture> create( String clientId, PostClientCredentialRequestContent request) { @@ -168,43 +172,47 @@ public CompletableFuture<h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture> create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -213,7 +221,7 @@ public CompletableFuture<b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> get( String clientId, String credentialId) { @@ -296,19 +304,23 @@ public CompletableFuture<b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> get( String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -375,26 +387,30 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> delete(String clientId, String credentialId) { return delete(clientId, credentialId, null); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> delete( String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -457,7 +473,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> update( String clientId, String credentialId) { @@ -468,7 +484,19 @@ public CompletableFutureClient Credential Flow. + */ + public CompletableFuture> update( + String clientId, String credentialId, RequestOptions requestOptions) { + return update( + clientId, + credentialId, + PatchClientCredentialRequestContent.builder().build(), + requestOptions); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -476,20 +504,24 @@ public CompletableFutureClient Credential Flow. */ public CompletableFuture> update( String clientId, String credentialId, PatchClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -498,7 +530,7 @@ public CompletableFuture<ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public SyncPagingIterable get(String id, ConnectionsGetRequest request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public SyncPagingIterable get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java index 57720198..4c3ccbbc 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java @@ -32,7 +32,7 @@ public RawCredentialsClient withRawResponse() { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public List list(String clientId) { return this.rawClient.list(clientId).body(); @@ -40,7 +40,7 @@ public List list(String clientId) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public List list(String clientId, RequestOptions requestOptions) { return this.rawClient.list(clientId, requestOptions).body(); @@ -48,34 +48,34 @@ public List list(String clientId, RequestOptions requestOption /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public PostClientCredentialResponseContent create(String clientId, PostClientCredentialRequestContent request) { return this.rawClient.create(clientId, request).body(); @@ -83,34 +83,34 @@ public PostClientCredentialResponseContent create(String clientId, PostClientCre /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public PostClientCredentialResponseContent create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { @@ -119,7 +119,7 @@ public PostClientCredentialResponseContent create( /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public GetClientCredentialResponseContent get(String clientId, String credentialId) { return this.rawClient.get(clientId, credentialId).body(); @@ -127,35 +127,43 @@ public GetClientCredentialResponseContent get(String clientId, String credential /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public GetClientCredentialResponseContent get(String clientId, String credentialId, RequestOptions requestOptions) { return this.rawClient.get(clientId, credentialId, requestOptions).body(); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public void delete(String clientId, String credentialId) { this.rawClient.delete(clientId, credentialId).body(); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public void delete(String clientId, String credentialId, RequestOptions requestOptions) { this.rawClient.delete(clientId, credentialId, requestOptions).body(); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public PatchClientCredentialResponseContent update(String clientId, String credentialId) { return this.rawClient.update(clientId, credentialId).body(); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. + */ + public PatchClientCredentialResponseContent update( + String clientId, String credentialId, RequestOptions requestOptions) { + return this.rawClient.update(clientId, credentialId, requestOptions).body(); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public PatchClientCredentialResponseContent update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -163,7 +171,7 @@ public PatchClientCredentialResponseContent update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public PatchClientCredentialResponseContent update( String clientId, diff --git a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java index c1ea7ded..822bc0dd 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java @@ -38,30 +38,46 @@ public RawConnectionsClient(ClientOptions clientOptions) { } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public ManagementApiHttpResponse> get(String id) { return get(id, ConnectionsGetRequest.builder().build()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public ManagementApiHttpResponse> get( + String id, RequestOptions requestOptions) { + return get(id, ConnectionsGetRequest.builder().build(), requestOptions); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public ManagementApiHttpResponse> get( String id, ConnectionsGetRequest request) { @@ -69,15 +85,15 @@ public ManagementApiHttpResponse> get( } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public ManagementApiHttpResponse> get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { @@ -103,6 +119,11 @@ public ManagementApiHttpResponse> get( QueryStringMapper.addQueryParameter( httpUrl, "strategy", request.getStrategy().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java index fdeb4b0e..cd4c448a 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java @@ -42,7 +42,7 @@ public RawCredentialsClient(ClientOptions clientOptions) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse> list(String clientId) { return list(clientId, null); @@ -50,17 +50,21 @@ public ManagementApiHttpResponse> list(String clientId) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse> list(String clientId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,34 +110,34 @@ public ManagementApiHttpResponse> list(String clientId, R /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public ManagementApiHttpResponse create( String clientId, PostClientCredentialRequestContent request) { @@ -142,43 +146,47 @@ public ManagementApiHttpResponse create( /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public ManagementApiHttpResponse create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -187,7 +195,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -237,7 +245,7 @@ public ManagementApiHttpResponse create( /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse get(String clientId, String credentialId) { return get(clientId, credentialId, null); @@ -245,19 +253,23 @@ public ManagementApiHttpResponse get(String /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse get( String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -302,25 +314,29 @@ public ManagementApiHttpResponse get( } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse delete(String clientId, String credentialId) { return delete(clientId, credentialId, null); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse delete(String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -362,7 +378,7 @@ public ManagementApiHttpResponse delete(String clientId, String credential } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse update( String clientId, String credentialId) { @@ -373,7 +389,19 @@ public ManagementApiHttpResponse update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. + */ + public ManagementApiHttpResponse update( + String clientId, String credentialId, RequestOptions requestOptions) { + return update( + clientId, + credentialId, + PatchClientCredentialRequestContent.builder().build(), + requestOptions); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -381,20 +409,24 @@ public ManagementApiHttpResponse update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse update( String clientId, String credentialId, PatchClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -403,7 +435,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java index 59a09f89..755bb5d1 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java @@ -99,7 +99,7 @@ public OptionalNullable getFields() { } /** - * @return <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>) + * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -326,7 +326,7 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { } /** - *

    <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)

    + *

    true if the fields specified are to be included in the result, false otherwise (defaults to true)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@Nullable OptionalNullable includeFields) { @@ -362,5 +362,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public ConnectionsGetRequest build() { return new ConnectionsGetRequest(strategy, from, take, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java index 170fe0ac..adc2f9ba 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java @@ -133,5 +133,15 @@ public Builder expiresAt(com.auth0.client.mgmt.core.Nullable exp public PatchClientCredentialRequestContent build() { return new PatchClientCredentialRequestContent(expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java index 42aea8ad..074cdfd1 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java @@ -161,6 +161,10 @@ public interface CredentialTypeStage { public interface _FinalStage { PostClientCredentialRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -359,5 +363,17 @@ public PostClientCredentialRequestContent build() { return new PostClientCredentialRequestContent( credentialType, name, subjectDn, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java index acef15c0..10817ae7 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java @@ -30,16 +30,25 @@ public AsyncRawClientsClient withRawResponse() { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture> get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -47,8 +56,8 @@ public CompletableFuture> get( } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture> get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java index 75de74fe..0b6d8631 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java @@ -47,6 +47,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a list of directory provisioning configurations of a tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -84,6 +91,14 @@ public CompletableFuture create(Stri return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Create a directory provisioning configuration for a connection. + */ + public CompletableFuture create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -123,6 +138,14 @@ public CompletableFuture update(Stri return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update the directory provisioning configuration of a connection. + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update the directory provisioning configuration of a connection. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java index 6bfc0677..81e274dd 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java @@ -50,6 +50,13 @@ public CompletableFuture rotate(String id) return this.rawClient.rotate(id).thenApply(response -> response.body()); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public CompletableFuture rotate(String id, RequestOptions requestOptions) { + return this.rawClient.rotate(id, requestOptions).thenApply(response -> response.body()); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java index ff1ba7f5..f9dd8ae7 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java @@ -46,16 +46,25 @@ public AsyncRawClientsClient(ClientOptions clientOptions) { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture>> get(String id) { return get(id, GetConnectionEnabledClientsRequestParameters.builder().build()); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, GetConnectionEnabledClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture>> get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -63,8 +72,8 @@ public CompletableFuture<b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture>> get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { @@ -78,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,12 +188,16 @@ public CompletableFuture> update( public CompletableFuture> update( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -188,7 +206,7 @@ public CompletableFuture> update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java index c117f49b..1ecb1335 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java @@ -59,6 +59,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListDirectoryProvisioningsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -80,6 +88,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -176,14 +189,18 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -261,6 +278,14 @@ public CompletableFutureabsent()); } + /** + * Create a directory provisioning configuration for a connection. + */ + public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -276,12 +301,16 @@ public CompletableFuture request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -293,7 +322,7 @@ public CompletableFuture> delete(String id) { * Delete the directory provisioning configuration of a connection. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -462,6 +495,14 @@ public CompletableFutureabsent()); } + /** + * Update the directory provisioning configuration of a connection. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, OptionalNullable.absent(), requestOptions); + } + /** * Update the directory provisioning configuration of a connection. */ @@ -477,12 +518,16 @@ public CompletableFuture request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -494,7 +539,7 @@ public CompletableFuture> getDefaultMapping(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java index 6e6eab19..8b2cc199 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java @@ -54,14 +54,18 @@ public CompletableFuture>> get(Str */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("keys") - .build(); + .addPathSegments("keys"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -138,6 +142,14 @@ public CompletableFutureabsent()); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public CompletableFuture> rotate( + String id, RequestOptions requestOptions) { + return rotate(id, OptionalNullable.absent(), requestOptions); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ @@ -151,13 +163,17 @@ public CompletableFuture> rotate( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("keys") - .addPathSegments("rotate") - .build(); + .addPathSegments("rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -169,7 +185,7 @@ public CompletableFutureconnectionId. */ public CompletableFuture> get(String id) { return get(id, null); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -122,6 +126,14 @@ public CompletableFutureabsent()); } + /** + * Create a scim configuration for a connection. + */ + public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a scim configuration for a connection. */ @@ -135,12 +147,16 @@ public CompletableFuture> create( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -152,7 +168,7 @@ public CompletableFutureconnectionId. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -280,7 +300,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public CompletableFuture> update( String id, UpdateScimConfigurationRequestContent request) { @@ -288,16 +308,20 @@ public CompletableFutureconnectionId. */ public CompletableFuture> update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -306,7 +330,7 @@ public CompletableFutureconnectionId. */ public CompletableFuture> getDefaultMapping(String id) { @@ -372,19 +396,23 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public CompletableFuture> getDefaultMapping(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java index 8c1f46ff..df5b672a 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java @@ -54,6 +54,11 @@ public CompletableFuture> deleteByEmail( .addPathSegment(id) .addPathSegments("users"); QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java index 25033a5d..f05c008e 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java @@ -38,14 +38,14 @@ public AsyncRawScimConfigurationClient withRawResponse() { } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -58,6 +58,13 @@ public CompletableFuture create(String i return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Create a scim configuration for a connection. + */ + public CompletableFuture create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Create a scim configuration for a connection. */ @@ -75,21 +82,21 @@ public CompletableFuture create( } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public CompletableFuture update( String id, UpdateScimConfigurationRequestContent request) { @@ -97,7 +104,7 @@ public CompletableFuture update( } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public CompletableFuture update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { @@ -105,14 +112,14 @@ public CompletableFuture update( } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public CompletableFuture getDefaultMapping(String id) { return this.rawClient.getDefaultMapping(id).thenApply(response -> response.body()); } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public CompletableFuture getDefaultMapping( String id, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java index 3cde8a29..5220513b 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java @@ -29,16 +29,24 @@ public RawClientsClient withRawResponse() { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public SyncPagingIterable get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -46,8 +54,8 @@ public SyncPagingIterable get( } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public SyncPagingIterable get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java index 8acf645d..cbfb7672 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java @@ -46,6 +46,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a list of directory provisioning configurations of a tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -82,6 +89,13 @@ public CreateDirectoryProvisioningResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Create a directory provisioning configuration for a connection. + */ + public CreateDirectoryProvisioningResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -121,6 +135,13 @@ public UpdateDirectoryProvisioningResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update the directory provisioning configuration of a connection. + */ + public UpdateDirectoryProvisioningResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update the directory provisioning configuration of a connection. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java index 248b5a68..9f41240b 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java @@ -49,6 +49,13 @@ public RotateConnectionsKeysResponseContent rotate(String id) { return this.rawClient.rotate(id).body(); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public RotateConnectionsKeysResponseContent rotate(String id, RequestOptions requestOptions) { + return this.rawClient.rotate(id, requestOptions).body(); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java index f9426f03..8108c49f 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java @@ -41,16 +41,25 @@ public RawClientsClient(ClientOptions clientOptions) { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public ManagementApiHttpResponse> get(String id) { return get(id, GetConnectionEnabledClientsRequestParameters.builder().build()); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public ManagementApiHttpResponse> get( + String id, RequestOptions requestOptions) { + return get(id, GetConnectionEnabledClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public ManagementApiHttpResponse> get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -58,8 +67,8 @@ public ManagementApiHttpResponse> ge } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public ManagementApiHttpResponse> get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { @@ -73,6 +82,11 @@ public ManagementApiHttpResponse> ge QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -139,12 +153,16 @@ public ManagementApiHttpResponse update( public ManagementApiHttpResponse update( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -153,7 +171,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java index 794586fa..a3a29663 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java @@ -54,6 +54,13 @@ public ManagementApiHttpResponse> list return list(ListDirectoryProvisioningsRequestParameters.builder().build()); } + /** + * Retrieve a list of directory provisioning configurations of a tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListDirectoryProvisioningsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -75,6 +82,11 @@ public ManagementApiHttpResponse> list httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -143,14 +155,18 @@ public ManagementApiHttpResponse get(St */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -204,6 +220,14 @@ public ManagementApiHttpResponse cre return create(id, OptionalNullable.absent()); } + /** + * Create a directory provisioning configuration for a connection. + */ + public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -219,12 +243,16 @@ public ManagementApiHttpResponse cre String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -236,7 +264,7 @@ public ManagementApiHttpResponse cre throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -298,14 +326,18 @@ public ManagementApiHttpResponse delete(String id) { * Delete the directory provisioning configuration of a connection. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -356,6 +388,14 @@ public ManagementApiHttpResponse upd return update(id, OptionalNullable.absent()); } + /** + * Update the directory provisioning configuration of a connection. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, OptionalNullable.absent(), requestOptions); + } + /** * Update the directory provisioning configuration of a connection. */ @@ -371,12 +411,16 @@ public ManagementApiHttpResponse upd String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -388,7 +432,7 @@ public ManagementApiHttpResponse upd throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -449,15 +493,19 @@ public ManagementApiHttpResponse getDefaultMapping( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java index 379455da..c1f436fa 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java @@ -49,14 +49,18 @@ public ManagementApiHttpResponse> get(String id) { * Gets the connection keys for the Okta or OIDC connection strategy. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("keys") - .build(); + .addPathSegments("keys"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -110,6 +114,14 @@ public ManagementApiHttpResponse rotate(St return rotate(id, OptionalNullable.absent()); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public ManagementApiHttpResponse rotate( + String id, RequestOptions requestOptions) { + return rotate(id, OptionalNullable.absent(), requestOptions); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ @@ -123,13 +135,17 @@ public ManagementApiHttpResponse rotate( */ public ManagementApiHttpResponse rotate( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("keys") - .addPathSegments("rotate") - .build(); + .addPathSegments("rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -141,7 +157,7 @@ public ManagementApiHttpResponse rotate( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java index bc2d8ecc..f0a2c381 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java @@ -37,25 +37,29 @@ public RawScimConfigurationClient(ClientOptions clientOptions) { } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public ManagementApiHttpResponse get(String id) { return get(id, null); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,6 +104,14 @@ public ManagementApiHttpResponse create( return create(id, OptionalNullable.absent()); } + /** + * Create a scim configuration for a connection. + */ + public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a scim configuration for a connection. */ @@ -113,12 +125,16 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -130,7 +146,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -170,24 +186,28 @@ public ManagementApiHttpResponse create( } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -223,7 +243,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public ManagementApiHttpResponse update( String id, UpdateScimConfigurationRequestContent request) { @@ -231,16 +251,20 @@ public ManagementApiHttpResponse update( } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public ManagementApiHttpResponse update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -249,7 +273,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -289,26 +313,30 @@ public ManagementApiHttpResponse update( } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public ManagementApiHttpResponse getDefaultMapping(String id) { return getDefaultMapping(id, null); } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public ManagementApiHttpResponse getDefaultMapping( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java index 40d1bba2..18419dfb 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java @@ -50,6 +50,11 @@ public ManagementApiHttpResponse deleteByEmail( .addPathSegment(id) .addPathSegments("users"); QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) diff --git a/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java index f4b9bd60..1d5d6e21 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java @@ -37,14 +37,14 @@ public RawScimConfigurationClient withRawResponse() { } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public GetScimConfigurationResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public GetScimConfigurationResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -57,6 +57,13 @@ public CreateScimConfigurationResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Create a scim configuration for a connection. + */ + public CreateScimConfigurationResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Create a scim configuration for a connection. */ @@ -74,28 +81,28 @@ public CreateScimConfigurationResponseContent create( } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public UpdateScimConfigurationResponseContent update(String id, UpdateScimConfigurationRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public UpdateScimConfigurationResponseContent update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { @@ -103,14 +110,14 @@ public UpdateScimConfigurationResponseContent update( } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public GetScimConfigurationDefaultMappingResponseContent getDefaultMapping(String id) { return this.rawClient.getDefaultMapping(id).body(); } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public GetScimConfigurationDefaultMappingResponseContent getDefaultMapping( String id, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java index 4e26fd08..12284e19 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java @@ -50,15 +50,19 @@ public CompletableFuture> create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("synchronizations") - .build(); + .addPathSegments("synchronizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java index 9348ab59..966d64c9 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java @@ -45,15 +45,19 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("synchronizations") - .build(); + .addPathSegments("synchronizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java index 7a515349..aa380258 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java @@ -40,26 +40,30 @@ public AsyncRawTokensClient(ClientOptions clientOptions) { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture>> get(String id) { return get(id, null); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -121,6 +125,14 @@ public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, CreateScimTokenRequestContent.builder().build(), requestOptions); + } + /** * Create a scim token for a scim client. */ @@ -134,13 +146,17 @@ public CompletableFuture> create( String id, CreateScimTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -149,7 +165,7 @@ public CompletableFutureid and tokenId. */ public CompletableFuture> delete(String id, String tokenId) { return delete(id, tokenId, null); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public CompletableFuture> delete( String id, String tokenId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration/tokens") - .addPathSegment(tokenId) - .build(); + .addPathSegment(tokenId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java index 5f385716..ef3baa45 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java @@ -29,14 +29,14 @@ public AsyncRawTokensClient withRawResponse() { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture> get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -49,6 +49,13 @@ public CompletableFuture create(String id) { return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Create a scim token for a scim client. + */ + public CompletableFuture create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Create a scim token for a scim client. */ @@ -65,14 +72,14 @@ public CompletableFuture create( } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public CompletableFuture delete(String id, String tokenId) { return this.rawClient.delete(id, tokenId).thenApply(response -> response.body()); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public CompletableFuture delete(String id, String tokenId, RequestOptions requestOptions) { return this.rawClient.delete(id, tokenId, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java index 3d7541e3..2d587423 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java @@ -36,25 +36,29 @@ public RawTokensClient(ClientOptions clientOptions) { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public ManagementApiHttpResponse> get(String id) { return get(id, null); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -99,6 +103,13 @@ public ManagementApiHttpResponse create(String i return create(id, CreateScimTokenRequestContent.builder().build()); } + /** + * Create a scim token for a scim client. + */ + public ManagementApiHttpResponse create(String id, RequestOptions requestOptions) { + return create(id, CreateScimTokenRequestContent.builder().build(), requestOptions); + } + /** * Create a scim token for a scim client. */ @@ -112,13 +123,17 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( String id, CreateScimTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -127,7 +142,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -169,25 +184,29 @@ public ManagementApiHttpResponse create( } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public ManagementApiHttpResponse delete(String id, String tokenId) { return delete(id, tokenId, null); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public ManagementApiHttpResponse delete(String id, String tokenId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration/tokens") - .addPathSegment(tokenId) - .build(); + .addPathSegment(tokenId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java index 8db9256a..98fe90d1 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java @@ -28,14 +28,14 @@ public RawTokensClient withRawResponse() { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public List get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public List get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -48,6 +48,13 @@ public CreateScimTokenResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Create a scim token for a scim client. + */ + public CreateScimTokenResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Create a scim token for a scim client. */ @@ -64,14 +71,14 @@ public CreateScimTokenResponseContent create( } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public void delete(String id, String tokenId) { this.rawClient.delete(id, tokenId).body(); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public void delete(String id, String tokenId, RequestOptions requestOptions) { this.rawClient.delete(id, tokenId, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java index dadd47f4..dcd8148b 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java @@ -162,5 +162,15 @@ public Builder tokenLifetime(com.auth0.client.mgmt.core.Nullable tokenL public CreateScimTokenRequestContent build() { return new CreateScimTokenRequestContent(scopes, tokenLifetime, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java index b211900f..da34d69b 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java @@ -77,6 +77,10 @@ public interface EmailStage { public interface _FinalStage { DeleteConnectionUsersByEmailQueryParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage email(@NotNull String email) { public DeleteConnectionUsersByEmailQueryParameters build() { return new DeleteConnectionUsersByEmailQueryParameters(email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java index 5a835025..f203ef6e 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java @@ -181,5 +181,15 @@ public Builder from(Nullable from) { public GetConnectionEnabledClientsRequestParameters build() { return new GetConnectionEnabledClientsRequestParameters(take, from, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java index c2f5a05b..d6c9d893 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListDirectoryProvisioningsRequestParameters build() { return new ListDirectoryProvisioningsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java index cea97bfc..a7dfe6aa 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java @@ -94,6 +94,10 @@ public interface UserIdAttributeStage { public interface _FinalStage { UpdateScimConfigurationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between auth0 and SCIM

    */ @@ -173,5 +177,17 @@ public _FinalStage mapping(List mapping) { public UpdateScimConfigurationRequestContent build() { return new UpdateScimConfigurationRequestContent(userIdAttribute, mapping, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/core/SseEvent.java b/src/main/java/com/auth0/client/mgmt/core/SseEvent.java new file mode 100644 index 00000000..1d290dc5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/core/SseEvent.java @@ -0,0 +1,114 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.core; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; +import java.util.Optional; + +/** + * Represents a Server-Sent Event with all standard fields. + * Used for event-level discrimination where the discriminator is at the SSE envelope level. + * + * @param The type of the data field + */ +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonIgnoreProperties(ignoreUnknown = true) +public final class SseEvent { + private final String event; + private final T data; + private final String id; + private final Long retry; + + private SseEvent(String event, T data, String id, Long retry) { + this.event = event; + this.data = data; + this.id = id; + this.retry = retry; + } + + @JsonProperty("event") + public Optional getEvent() { + return Optional.ofNullable(event); + } + + @JsonProperty("data") + public T getData() { + return data; + } + + @JsonProperty("id") + public Optional getId() { + return Optional.ofNullable(id); + } + + @JsonProperty("retry") + public Optional getRetry() { + return Optional.ofNullable(retry); + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SseEvent sseEvent = (SseEvent) o; + return Objects.equals(event, sseEvent.event) + && Objects.equals(data, sseEvent.data) + && Objects.equals(id, sseEvent.id) + && Objects.equals(retry, sseEvent.retry); + } + + @Override + public int hashCode() { + return Objects.hash(event, data, id, retry); + } + + @Override + public String toString() { + return "SseEvent{" + "event='" + + event + '\'' + ", data=" + + data + ", id='" + + id + '\'' + ", retry=" + + retry + '}'; + } + + public static Builder builder() { + return new Builder<>(); + } + + public static final class Builder { + private String event; + private T data; + private String id; + private Long retry; + + private Builder() {} + + public Builder event(String event) { + this.event = event; + return this; + } + + public Builder data(T data) { + this.data = data; + return this; + } + + public Builder id(String id) { + this.id = id; + return this; + } + + public Builder retry(Long retry) { + this.retry = retry; + return this; + } + + public SseEvent build() { + return new SseEvent<>(event, data, id, retry); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/core/SseEventParser.java b/src/main/java/com/auth0/client/mgmt/core/SseEventParser.java new file mode 100644 index 00000000..9badb0be --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/core/SseEventParser.java @@ -0,0 +1,228 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.core; + +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.reflect.Field; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Optional; +import java.util.Set; + +/** + * Utility class for parsing Server-Sent Events with support for discriminated unions. + *

    + * Handles two discrimination patterns: + *

      + *
    1. Data-level discrimination: The discriminator (e.g., 'type') is inside the JSON data payload. + * Jackson's polymorphic deserialization handles this automatically.
    2. + *
    3. Event-level discrimination: The discriminator (e.g., 'event') is at the SSE envelope level. + * This requires constructing the full SSE envelope for Jackson to process.
    4. + *
    + */ +public final class SseEventParser { + + private static final Set SSE_ENVELOPE_FIELDS = new HashSet<>(Arrays.asList("event", "data", "id", "retry")); + + private SseEventParser() { + // Utility class + } + + /** + * Parse an SSE event using event-level discrimination. + *

    + * Constructs the full SSE envelope object with event, data, id, and retry fields, + * then deserializes it to the target union type. + * + * @param eventType The SSE event type (from event: field) + * @param data The SSE data content (from data: field) + * @param id The SSE event ID (from id: field), may be null + * @param retry The SSE retry value (from retry: field), may be null + * @param unionClass The target union class + * @param discriminatorProperty The property name used for discrimination (e.g., "event") + * @param The target type + * @return The deserialized object + */ + public static T parseEventLevelUnion( + String eventType, String data, String id, Long retry, Class unionClass, String discriminatorProperty) { + try { + // Determine if data should be parsed as JSON based on the variant's expected type + Object parsedData = parseDataForVariant(eventType, data, unionClass, discriminatorProperty); + + // Construct the SSE envelope object + Map envelope = new HashMap<>(); + envelope.put(discriminatorProperty, eventType); + envelope.put("data", parsedData); + if (id != null) { + envelope.put("id", id); + } + if (retry != null) { + envelope.put("retry", retry); + } + + // Serialize to JSON and deserialize to target type + String envelopeJson = ObjectMappers.JSON_MAPPER.writeValueAsString(envelope); + return ObjectMappers.JSON_MAPPER.readValue(envelopeJson, unionClass); + } catch (Exception e) { + throw new RuntimeException("Failed to parse SSE event with event-level discrimination", e); + } + } + + /** + * Parse an SSE event using data-level discrimination. + *

    + * Simply parses the data field as JSON and deserializes it to the target type. + * Jackson's polymorphic deserialization handles the discrimination automatically. + * + * @param data The SSE data content (from data: field) + * @param valueType The target type + * @param The target type + * @return The deserialized object + */ + public static T parseDataLevelUnion(String data, Class valueType) { + try { + return ObjectMappers.JSON_MAPPER.readValue(data, valueType); + } catch (Exception e) { + throw new RuntimeException("Failed to parse SSE data with data-level discrimination", e); + } + } + + /** + * Determines if the given discriminator property indicates event-level discrimination. + * Event-level discrimination occurs when the discriminator is an SSE envelope field. + * + * @param discriminatorProperty The discriminator property name + * @return true if event-level discrimination, false otherwise + */ + public static boolean isEventLevelDiscrimination(String discriminatorProperty) { + return SSE_ENVELOPE_FIELDS.contains(discriminatorProperty); + } + + /** + * Attempts to find the discriminator property from the union class's Jackson annotations. + * + * @param unionClass The union class to inspect + * @return The discriminator property name, or empty if not found + */ + public static Optional findDiscriminatorProperty(Class unionClass) { + try { + // Look for JsonTypeInfo on the class itself + JsonTypeInfo typeInfo = unionClass.getAnnotation(JsonTypeInfo.class); + if (typeInfo != null && !typeInfo.property().isEmpty()) { + return Optional.of(typeInfo.property()); + } + + // Look for inner Value interface with JsonTypeInfo + for (Class innerClass : unionClass.getDeclaredClasses()) { + typeInfo = innerClass.getAnnotation(JsonTypeInfo.class); + if (typeInfo != null && !typeInfo.property().isEmpty()) { + return Optional.of(typeInfo.property()); + } + } + } catch (Exception e) { + // Ignore reflection errors + } + return Optional.empty(); + } + + /** + * Parse the data field based on what the matching variant expects. + * If the variant expects a String for its data field, returns the raw string. + * Otherwise, parses the data as JSON. + */ + private static Object parseDataForVariant( + String eventType, String data, Class unionClass, String discriminatorProperty) { + if (data == null || data.isEmpty()) { + return data; + } + + try { + // Try to find the variant class that matches this event type + Class variantClass = findVariantClass(unionClass, eventType, discriminatorProperty); + if (variantClass != null) { + // Check if the variant expects a String for the data field + Field dataField = findField(variantClass, "data"); + if (dataField != null && String.class.equals(dataField.getType())) { + // Variant expects String - return raw data + return data; + } + } + + // Try to parse as JSON + return ObjectMappers.JSON_MAPPER.readValue(data, new TypeReference>() {}); + } catch (Exception e) { + // If JSON parsing fails, return as string + return data; + } + } + + /** + * Find the variant class that matches the given discriminator value. + */ + private static Class findVariantClass( + Class unionClass, String discriminatorValue, String discriminatorProperty) { + try { + // Look for JsonSubTypes annotation + JsonSubTypes subTypes = findJsonSubTypes(unionClass); + if (subTypes == null) { + return null; + } + + for (JsonSubTypes.Type subType : subTypes.value()) { + JsonTypeName typeName = subType.value().getAnnotation(JsonTypeName.class); + if (typeName != null && typeName.value().equals(discriminatorValue)) { + return subType.value(); + } + // Also check the name attribute of @JsonSubTypes.Type + if (subType.name().equals(discriminatorValue)) { + return subType.value(); + } + } + } catch (Exception e) { + // Ignore reflection errors + } + return null; + } + + /** + * Find JsonSubTypes annotation on the class or its inner classes. + */ + private static JsonSubTypes findJsonSubTypes(Class unionClass) { + // Check the class itself + JsonSubTypes subTypes = unionClass.getAnnotation(JsonSubTypes.class); + if (subTypes != null) { + return subTypes; + } + + // Check inner classes (for Fern-style unions with inner Value interface) + for (Class innerClass : unionClass.getDeclaredClasses()) { + subTypes = innerClass.getAnnotation(JsonSubTypes.class); + if (subTypes != null) { + return subTypes; + } + } + return null; + } + + /** + * Find a field by name in a class, including private fields. + */ + private static Field findField(Class clazz, String fieldName) { + try { + return clazz.getDeclaredField(fieldName); + } catch (NoSuchFieldException e) { + // Check superclass + Class superClass = clazz.getSuperclass(); + if (superClass != null && superClass != Object.class) { + return findField(superClass, fieldName); + } + return null; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/core/Stream.java b/src/main/java/com/auth0/client/mgmt/core/Stream.java index c2d43897..e17919b9 100644 --- a/src/main/java/com/auth0/client/mgmt/core/Stream.java +++ b/src/main/java/com/auth0/client/mgmt/core/Stream.java @@ -28,7 +28,8 @@ public final class Stream implements Iterable, Closeable { public enum StreamType { JSON, - SSE + SSE, + SSE_EVENT_DISCRIMINATED } private final Class valueType; @@ -37,6 +38,7 @@ public enum StreamType { private final String messageTerminator; private final String streamTerminator; private final Reader sseReader; + private final String discriminatorProperty; private boolean isClosed = false; /** @@ -53,11 +55,18 @@ public Stream(Class valueType, Reader reader, String delimiter) { this.messageTerminator = delimiter; this.streamTerminator = null; this.sseReader = null; + this.discriminatorProperty = null; } private Stream(Class valueType, StreamType type, Reader reader, String terminator) { + this(valueType, type, reader, terminator, null); + } + + private Stream( + Class valueType, StreamType type, Reader reader, String terminator, String discriminatorProperty) { this.valueType = valueType; this.streamType = type; + this.discriminatorProperty = discriminatorProperty; if (type == StreamType.JSON) { this.scanner = new Scanner(reader).useDelimiter(terminator); this.messageTerminator = terminator; @@ -87,6 +96,38 @@ public static Stream fromSse(Class valueType, Reader sseReader, String return new Stream<>(valueType, StreamType.SSE, sseReader, streamTerminator); } + /** + * Creates a stream from SSE data with event-level discrimination support. + * Use this when the SSE payload is a discriminated union where the discriminator + * is an SSE envelope field (e.g., 'event'). + * + * @param valueType The class of the objects in the stream. + * @param sseReader The reader that provides the SSE data. + * @param discriminatorProperty The property name used for discrimination (e.g., "event"). + * @param The type of objects in the stream. + * @return A new Stream instance configured for SSE with event-level discrimination. + */ + public static Stream fromSseWithEventDiscrimination( + Class valueType, Reader sseReader, String discriminatorProperty) { + return new Stream<>(valueType, StreamType.SSE_EVENT_DISCRIMINATED, sseReader, null, discriminatorProperty); + } + + /** + * Creates a stream from SSE data with event-level discrimination support and a stream terminator. + * + * @param valueType The class of the objects in the stream. + * @param sseReader The reader that provides the SSE data. + * @param discriminatorProperty The property name used for discrimination (e.g., "event"). + * @param streamTerminator The terminator string that signals end of stream (e.g., "[DONE]"). + * @param The type of objects in the stream. + * @return A new Stream instance configured for SSE with event-level discrimination. + */ + public static Stream fromSseWithEventDiscrimination( + Class valueType, Reader sseReader, String discriminatorProperty, String streamTerminator) { + return new Stream<>( + valueType, StreamType.SSE_EVENT_DISCRIMINATED, sseReader, streamTerminator, discriminatorProperty); + } + @Override public void close() throws IOException { if (!isClosed) { @@ -112,10 +153,14 @@ private boolean isStreamClosed() { */ @Override public Iterator iterator() { - if (streamType == StreamType.SSE) { - return new SSEIterator(); - } else { - return new JsonIterator(); + switch (streamType) { + case SSE: + return new SSEIterator(); + case SSE_EVENT_DISCRIMINATED: + return new SSEEventDiscriminatedIterator(); + case JSON: + default: + return new JsonIterator(); } } @@ -299,4 +344,170 @@ private boolean readNextMessage() { } } } + + /** + * Iterator for SSE streams with event-level discrimination. + * Uses SseEventParser to construct the full SSE envelope for Jackson deserialization. + */ + private final class SSEEventDiscriminatedIterator implements Iterator { + private Scanner sseScanner; + private T nextItem; + private boolean hasNextItem = false; + private boolean endOfStream = false; + private StringBuilder eventDataBuffer = new StringBuilder(); + private String currentEventType = null; + private String currentEventId = null; + private Long currentRetry = null; + + private SSEEventDiscriminatedIterator() { + if (sseReader != null && !isStreamClosed()) { + this.sseScanner = new Scanner(sseReader); + } else { + this.endOfStream = true; + } + } + + @Override + public boolean hasNext() { + if (isStreamClosed() || endOfStream) { + return false; + } + + if (hasNextItem) { + return true; + } + + return readNextMessage(); + } + + @Override + public T next() { + if (!hasNext()) { + throw new NoSuchElementException("No more elements in stream"); + } + + T result = nextItem; + nextItem = null; + hasNextItem = false; + return result; + } + + @Override + public void remove() { + throw new UnsupportedOperationException(); + } + + private boolean readNextMessage() { + if (sseScanner == null || isStreamClosed()) { + endOfStream = true; + return false; + } + + try { + while (sseScanner.hasNextLine()) { + String line = sseScanner.nextLine(); + + if (line.trim().isEmpty()) { + if (eventDataBuffer.length() > 0 || currentEventType != null) { + try { + // Use SseEventParser for event-level discrimination + nextItem = SseEventParser.parseEventLevelUnion( + currentEventType, + eventDataBuffer.toString(), + currentEventId, + currentRetry, + valueType, + discriminatorProperty); + hasNextItem = true; + resetEventState(); + return true; + } catch (Exception parseEx) { + System.err.println("Failed to parse SSE event: " + parseEx.getMessage()); + resetEventState(); + continue; + } + } + continue; + } + + if (line.startsWith(DATA_PREFIX)) { + String dataContent = line.substring(DATA_PREFIX.length()); + if (dataContent.startsWith(" ")) { + dataContent = dataContent.substring(1); + } + + if (eventDataBuffer.length() == 0 + && streamTerminator != null + && dataContent.trim().equals(streamTerminator)) { + endOfStream = true; + return false; + } + + if (eventDataBuffer.length() > 0) { + eventDataBuffer.append('\n'); + } + eventDataBuffer.append(dataContent); + } else if (line.startsWith("event:")) { + String eventValue = line.length() > 6 ? line.substring(6) : ""; + if (eventValue.startsWith(" ")) { + eventValue = eventValue.substring(1); + } + currentEventType = eventValue; + } else if (line.startsWith("id:")) { + String idValue = line.length() > 3 ? line.substring(3) : ""; + if (idValue.startsWith(" ")) { + idValue = idValue.substring(1); + } + currentEventId = idValue; + } else if (line.startsWith("retry:")) { + String retryValue = line.length() > 6 ? line.substring(6) : ""; + if (retryValue.startsWith(" ")) { + retryValue = retryValue.substring(1); + } + try { + currentRetry = Long.parseLong(retryValue.trim()); + } catch (NumberFormatException e) { + // Ignore invalid retry values + } + } else if (line.startsWith(":")) { + // Comment line (ignored) + } + } + + // Handle any remaining buffered data at end of stream + if (eventDataBuffer.length() > 0 || currentEventType != null) { + try { + nextItem = SseEventParser.parseEventLevelUnion( + currentEventType, + eventDataBuffer.toString(), + currentEventId, + currentRetry, + valueType, + discriminatorProperty); + hasNextItem = true; + resetEventState(); + return true; + } catch (Exception parseEx) { + System.err.println("Failed to parse final SSE event: " + parseEx.getMessage()); + resetEventState(); + } + } + + endOfStream = true; + return false; + + } catch (Exception e) { + System.err.println("Failed to parse SSE stream: " + e.getMessage()); + endOfStream = true; + return false; + } + } + + private void resetEventState() { + eventDataBuffer.setLength(0); + currentEventType = null; + currentEventId = null; + currentRetry = null; + } + } } diff --git a/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java index 4b10e060..e4efcf3d 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java @@ -31,21 +31,28 @@ public AsyncRawProviderClient withRawResponse() { } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture get() { return this.rawClient.get().thenApply(response -> response.body()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture get(GetEmailProviderRequestParameters request) { return this.rawClient.get(request).thenApply(response -> response.body()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -53,96 +60,96 @@ public CompletableFuture get( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture create(CreateEmailProviderRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -164,138 +171,184 @@ public CompletableFuture delete(RequestOptions requestOptions) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture update(UpdateEmailProviderRequestContent request) { return this.rawClient.update(request).thenApply(response -> response.body()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java index 0bd14783..b75b2cea 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java @@ -45,14 +45,22 @@ public AsyncRawProviderClient(ClientOptions clientOptions) { } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get() { return get(GetEmailProviderRequestParameters.builder().build()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture> get( + RequestOptions requestOptions) { + return get(GetEmailProviderRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get( GetEmailProviderRequestParameters request) { @@ -60,7 +68,7 @@ public CompletableFutureemail provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -75,6 +83,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -148,48 +161,48 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> create( CreateEmailProviderRequestContent request) { @@ -197,55 +210,59 @@ public CompletableFuture<ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -254,7 +271,7 @@ public CompletableFuture> delete() { * Delete the email provider. */ public CompletableFuture> delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -410,92 +431,139 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> update() { return update(UpdateEmailProviderRequestContent.builder().build()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateEmailProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> update( UpdateEmailProviderRequestContent request) { @@ -503,53 +571,57 @@ public CompletableFuture<ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -558,7 +630,7 @@ public CompletableFutureemail provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public GetEmailProviderResponseContent get() { return this.rawClient.get().body(); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public GetEmailProviderResponseContent get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).body(); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public GetEmailProviderResponseContent get(GetEmailProviderRequestParameters request) { return this.rawClient.get(request).body(); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public GetEmailProviderResponseContent get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -52,96 +59,96 @@ public GetEmailProviderResponseContent get( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CreateEmailProviderResponseContent create(CreateEmailProviderRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CreateEmailProviderResponseContent create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -163,138 +170,184 @@ public void delete(RequestOptions requestOptions) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public UpdateEmailProviderResponseContent update() { return this.rawClient.update().body(); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public UpdateEmailProviderResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public UpdateEmailProviderResponseContent update(UpdateEmailProviderRequestContent request) { return this.rawClient.update(request).body(); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public UpdateEmailProviderResponseContent update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java index 7c294829..c6154244 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java @@ -41,21 +41,28 @@ public RawProviderClient(ClientOptions clientOptions) { } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get() { return get(GetEmailProviderRequestParameters.builder().build()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public ManagementApiHttpResponse get(RequestOptions requestOptions) { + return get(GetEmailProviderRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get(GetEmailProviderRequestParameters request) { return get(request, null); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -70,6 +77,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -118,48 +130,48 @@ public ManagementApiHttpResponse get( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse create( CreateEmailProviderRequestContent request) { @@ -167,55 +179,59 @@ public ManagementApiHttpResponse create( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -224,7 +240,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -283,12 +299,16 @@ public ManagementApiHttpResponse delete() { * Delete the email provider. */ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -333,92 +353,138 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse update() { return update(UpdateEmailProviderRequestContent.builder().build()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateEmailProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse update( UpdateEmailProviderRequestContent request) { @@ -426,53 +492,57 @@ public ManagementApiHttpResponse update( } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -481,7 +551,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java b/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java index 556c5738..a85a6a9e 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java @@ -140,6 +140,10 @@ public interface CredentialsStage { public interface _FinalStage { CreateEmailProviderRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether the provider is enabled (true) or disabled (false).

    */ @@ -284,5 +288,17 @@ public CreateEmailProviderRequestContent build() { return new CreateEmailProviderRequestContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java b/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java index df18ed7b..35eec142 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetEmailProviderRequestParameters build() { return new GetEmailProviderRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java b/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java index 54dd8275..517dc060 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java @@ -237,5 +237,15 @@ public UpdateEmailProviderRequestContent build() { return new UpdateEmailProviderRequestContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java index 342ff8d2..a90f8678 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java @@ -32,6 +32,10 @@ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String id, ListEventStreamDeliveriesRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java index 23a0e8c2..3a8ce9ff 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java @@ -44,6 +44,11 @@ public CompletableFuture>> l return list(id, ListEventStreamDeliveriesRequestParameters.builder().build()); } + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListEventStreamDeliveriesRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String id, ListEventStreamDeliveriesRequestParameters request) { return list(id, request, null); @@ -77,6 +82,11 @@ public CompletableFuture>> l httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,15 +165,19 @@ public CompletableFuture> getHistory( String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("deliveries") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java index 870028b5..a4c20b19 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java @@ -42,6 +42,11 @@ public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, CreateEventStreamRedeliveryRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> create( String id, CreateEventStreamRedeliveryRequestContent request) { return create(id, request, null); @@ -49,12 +54,16 @@ public CompletableFuture> create( String id, CreateEventStreamRedeliveryRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("redeliver") - .build(); + .addPathSegments("redeliver"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -63,7 +72,7 @@ public CompletableFuture> createById(String id, public CompletableFuture> createById( String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("redeliver") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java index b9ae128e..086405e0 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java @@ -30,6 +30,11 @@ public CompletableFuture create(Stri return this.rawClient.create(id).thenApply(response -> response.body()); } + public CompletableFuture create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture create( String id, CreateEventStreamRedeliveryRequestContent request) { return this.rawClient.create(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java index e4447c2d..0d9b4e87 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java @@ -31,6 +31,10 @@ public List list(String id) { return this.rawClient.list(id).body(); } + public List list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + public List list(String id, ListEventStreamDeliveriesRequestParameters request) { return this.rawClient.list(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java index 4137ff1f..e897dad0 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java @@ -40,6 +40,10 @@ public ManagementApiHttpResponse> list(String id) { return list(id, ListEventStreamDeliveriesRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListEventStreamDeliveriesRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String id, ListEventStreamDeliveriesRequestParameters request) { return list(id, request, null); @@ -73,6 +77,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -128,15 +137,19 @@ public ManagementApiHttpResponse g public ManagementApiHttpResponse getHistory( String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("deliveries") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java index 251d36d8..a26608a9 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java @@ -38,6 +38,11 @@ public ManagementApiHttpResponse cre return create(id, CreateEventStreamRedeliveryRequestContent.builder().build()); } + public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create(id, CreateEventStreamRedeliveryRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse create( String id, CreateEventStreamRedeliveryRequestContent request) { return create(id, request, null); @@ -45,12 +50,16 @@ public ManagementApiHttpResponse cre public ManagementApiHttpResponse create( String id, CreateEventStreamRedeliveryRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("redeliver") - .build(); + .addPathSegments("redeliver"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -59,7 +68,7 @@ public ManagementApiHttpResponse cre throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -112,15 +121,19 @@ public ManagementApiHttpResponse createById(String id, String eventId) { } public ManagementApiHttpResponse createById(String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("redeliver") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java index 3ab86d00..06a2629b 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java @@ -29,6 +29,10 @@ public CreateEventStreamRedeliveryResponseContent create(String id) { return this.rawClient.create(id).body(); } + public CreateEventStreamRedeliveryResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + public CreateEventStreamRedeliveryResponseContent create( String id, CreateEventStreamRedeliveryRequestContent request) { return this.rawClient.create(id, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java b/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java index 04e89961..f98e2356 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java @@ -195,5 +195,15 @@ public CreateEventStreamRedeliveryRequestContent build() { return new CreateEventStreamRedeliveryRequestContent( dateFrom, dateTo, statuses, eventTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java index 02389dd4..ba85033f 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java @@ -425,5 +425,15 @@ public ListEventStreamDeliveriesRequestParameters build() { return new ListEventStreamDeliveriesRequestParameters( statuses, eventTypes, dateFrom, dateTo, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java index 7c49c8e8..6d039774 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java @@ -33,6 +33,11 @@ public CompletableFuture> list(String f return this.rawClient.list(flowId).thenApply(response -> response.body()); } + public CompletableFuture> list( + String flowId, RequestOptions requestOptions) { + return this.rawClient.list(flowId, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String flowId, ListFlowExecutionsRequestParameters request) { return this.rawClient.list(flowId, request).thenApply(response -> response.body()); @@ -47,6 +52,11 @@ public CompletableFuture get(String flowId, Str return this.rawClient.get(flowId, executionId).thenApply(response -> response.body()); } + public CompletableFuture get( + String flowId, String executionId, RequestOptions requestOptions) { + return this.rawClient.get(flowId, executionId, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return this.rawClient.get(flowId, executionId, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java index c7083521..2a5f39b8 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java @@ -48,6 +48,11 @@ public CompletableFuture>> list( + String flowId, RequestOptions requestOptions) { + return list(flowId, ListFlowExecutionsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String flowId, ListFlowExecutionsRequestParameters request) { return list(flowId, request, null); @@ -65,6 +70,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,6 +165,12 @@ public CompletableFuture> get( + String flowId, String executionId, RequestOptions requestOptions) { + return get( + flowId, executionId, GetFlowExecutionRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture> get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return get(flowId, executionId, request, null); @@ -175,6 +191,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -248,15 +269,19 @@ public CompletableFuture> delete(String flowId, public CompletableFuture> delete( String flowId, String executionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") .addPathSegment(flowId) .addPathSegments("executions") - .addPathSegment(executionId) - .build(); + .addPathSegment(executionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java index ddcb37e9..67157082 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java @@ -32,6 +32,10 @@ public SyncPagingIterable list(String flowId) { return this.rawClient.list(flowId).body(); } + public SyncPagingIterable list(String flowId, RequestOptions requestOptions) { + return this.rawClient.list(flowId, requestOptions).body(); + } + public SyncPagingIterable list(String flowId, ListFlowExecutionsRequestParameters request) { return this.rawClient.list(flowId, request).body(); } @@ -45,6 +49,10 @@ public GetFlowExecutionResponseContent get(String flowId, String executionId) { return this.rawClient.get(flowId, executionId).body(); } + public GetFlowExecutionResponseContent get(String flowId, String executionId, RequestOptions requestOptions) { + return this.rawClient.get(flowId, executionId, requestOptions).body(); + } + public GetFlowExecutionResponseContent get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return this.rawClient.get(flowId, executionId, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java index 6bc25eb8..51c38d57 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java @@ -43,6 +43,11 @@ public ManagementApiHttpResponse> list( return list(flowId, ListFlowExecutionsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + String flowId, RequestOptions requestOptions) { + return list(flowId, ListFlowExecutionsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String flowId, ListFlowExecutionsRequestParameters request) { return list(flowId, request, null); @@ -60,6 +65,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -121,6 +131,12 @@ public ManagementApiHttpResponse get(String flo flowId, executionId, GetFlowExecutionRequestParameters.builder().build()); } + public ManagementApiHttpResponse get( + String flowId, String executionId, RequestOptions requestOptions) { + return get( + flowId, executionId, GetFlowExecutionRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return get(flowId, executionId, request, null); @@ -141,6 +157,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -190,15 +211,19 @@ public ManagementApiHttpResponse delete(String flowId, String executionId) } public ManagementApiHttpResponse delete(String flowId, String executionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") .addPathSegment(flowId) .addPathSegments("executions") - .addPathSegment(executionId) - .build(); + .addPathSegment(executionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java index 38e2a94f..f39a035e 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java @@ -131,5 +131,15 @@ public Builder hydrate(GetFlowExecutionRequestParametersHydrateEnum hydrate) { public GetFlowExecutionRequestParameters build() { return new GetFlowExecutionRequestParameters(hydrate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java index 48f9441b..51e40767 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListFlowExecutionsRequestParameters build() { return new ListFlowExecutionsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java index 4ae8157c..dbdd5aa4 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java @@ -36,6 +36,10 @@ public CompletableFuture> list() return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( ListFlowsVaultConnectionsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -76,6 +80,11 @@ public CompletableFuture update(Strin return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( String id, UpdateFlowsVaultConnectionRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java index 69afed7d..811186f6 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java @@ -53,6 +53,11 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListFlowsVaultConnectionsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( ListFlowsVaultConnectionsRequestParameters request) { return list(request, null); @@ -68,6 +73,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -164,10 +174,14 @@ public CompletableFuture> create( CreateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows/vault/connections") - .build(); + .addPathSegments("flows/vault/connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -176,7 +190,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -331,13 +349,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -403,6 +425,11 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateFlowsVaultConnectionRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdateFlowsVaultConnectionRequestContent request) { return update(id, request, null); @@ -410,11 +437,15 @@ public CompletableFuture> update( String id, UpdateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -423,7 +454,7 @@ public CompletableFuture list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListFlowsVaultConnectionsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -73,6 +77,10 @@ public UpdateFlowsVaultConnectionResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateFlowsVaultConnectionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateFlowsVaultConnectionResponseContent update( String id, UpdateFlowsVaultConnectionRequestContent request) { return this.rawClient.update(id, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java index 60280b9e..56969cf9 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java @@ -48,6 +48,11 @@ public ManagementApiHttpResponse return list(ListFlowsVaultConnectionsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListFlowsVaultConnectionsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( ListFlowsVaultConnectionsRequestParameters request) { return list(request, null); @@ -63,6 +68,11 @@ public ManagementApiHttpResponse httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -128,10 +138,14 @@ public ManagementApiHttpResponse crea public ManagementApiHttpResponse create( CreateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows/vault/connections") - .build(); + .addPathSegments("flows/vault/connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +154,7 @@ public ManagementApiHttpResponse crea throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -191,13 +205,17 @@ public ManagementApiHttpResponse get(Str public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -249,13 +267,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -300,6 +322,11 @@ public ManagementApiHttpResponse upda return update(id, UpdateFlowsVaultConnectionRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateFlowsVaultConnectionRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( String id, UpdateFlowsVaultConnectionRequestContent request) { return update(id, request, null); @@ -307,11 +334,15 @@ public ManagementApiHttpResponse upda public ManagementApiHttpResponse update( String id, UpdateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -320,7 +351,7 @@ public ManagementApiHttpResponse upda throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java index 59dcad82..f6420199 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListFlowsVaultConnectionsRequestParameters build() { return new ListFlowsVaultConnectionsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java index df611d00..4a6e7d9b 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java @@ -124,5 +124,15 @@ public Builder setup(UpdateFlowsVaultConnectionSetup setup) { public UpdateFlowsVaultConnectionRequestContent build() { return new UpdateFlowsVaultConnectionRequestContent(name, setup, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java index ff414e68..6b0c8aea 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java @@ -34,6 +34,13 @@ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } + /** + * List all users that are a member of this group. + */ + public CompletableFuture> get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + /** * List all users that are a member of this group. */ diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java index d66c1afa..240ab8f9 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java @@ -48,6 +48,14 @@ public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, GetGroupMembersRequestParameters.builder().build(), requestOptions); + } + /** * List all users that are a member of this group. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java index 9e3e321f..4ad1f164 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } + /** + * List all users that are a member of this group. + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + /** * List all users that are a member of this group. */ diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java index 2719590c..5c39425f 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java @@ -43,6 +43,13 @@ public ManagementApiHttpResponse> get(String id) return get(id, GetGroupMembersRequestParameters.builder().build()); } + /** + * List all users that are a member of this group. + */ + public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { + return get(id, GetGroupMembersRequestParameters.builder().build(), requestOptions); + } + /** * List all users that are a member of this group. */ @@ -74,6 +81,11 @@ public ManagementApiHttpResponse> get( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java index cee282e0..c1879dab 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java @@ -303,5 +303,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public GetGroupMembersRequestParameters build() { return new GetGroupMembersRequestParameters(fields, includeFields, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java index 2df1eda7..0e7065c8 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java @@ -28,8 +28,8 @@ public AsyncRawEnrollmentsClient withRawResponse() { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture createTicket( @@ -38,8 +38,8 @@ public CompletableFuture createTi } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture createTicket( @@ -62,14 +62,14 @@ public CompletableFuture get(String id, Re } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java index bc95ff62..e387e191 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java @@ -48,14 +48,14 @@ public AsyncRawFactorsClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture> list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java index 1ea9b5c0..dc433cc3 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java @@ -27,52 +27,52 @@ public AsyncRawPoliciesClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).thenApply(response -> response.body()); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> set(List request) { return this.rawClient.set(request).thenApply(response -> response.body()); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> set(List request, RequestOptions requestOptions) { return this.rawClient.set(request, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java index 3981a5b8..9e2ac9f4 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java @@ -39,8 +39,8 @@ public AsyncRawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture> createTicket( @@ -49,16 +49,20 @@ public CompletableFuturemulti-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture> createTicket( CreateGuardianEnrollmentTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/enrollments/ticket") - .build(); + .addPathSegments("guardian/enrollments/ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -67,7 +71,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -214,23 +222,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java index 62dfea12..9d0c81b9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java @@ -41,22 +41,26 @@ public AsyncRawFactorsClient(ClientOptions clientOptions) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture>> list() { return list(null); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors") - .build(); + .addPathSegments("guardian/factors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -129,11 +133,15 @@ public CompletableFuture> set( GuardianFactorNameEnum name, SetGuardianFactorRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/factors") - .addPathSegment(name.toString()) - .build(); + .addPathSegment(name.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -142,7 +150,7 @@ public CompletableFuturemulti-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> list() { return list(null); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -126,33 +130,37 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> set(List request) { return set(request, null); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> set( List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -161,7 +169,7 @@ public CompletableFuture>> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java index d68f7d4c..41475707 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java @@ -27,8 +27,8 @@ public RawEnrollmentsClient withRawResponse() { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CreateGuardianEnrollmentTicketResponseContent createTicket( @@ -37,8 +37,8 @@ public CreateGuardianEnrollmentTicketResponseContent createTicket( } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CreateGuardianEnrollmentTicketResponseContent createTicket( @@ -61,14 +61,14 @@ public GetGuardianEnrollmentResponseContent get(String id, RequestOptions reques } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java index d9f4c492..8425b8b9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java @@ -47,14 +47,14 @@ public RawFactorsClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public List list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java index df16a511..e97f7cdb 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java @@ -26,52 +26,52 @@ public RawPoliciesClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).body(); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List set(List request) { return this.rawClient.set(request).body(); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List set(List request, RequestOptions requestOptions) { return this.rawClient.set(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java index 1e471277..38535556 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java @@ -35,8 +35,8 @@ public RawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public ManagementApiHttpResponse createTicket( @@ -45,16 +45,20 @@ public ManagementApiHttpResponse } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public ManagementApiHttpResponse createTicket( CreateGuardianEnrollmentTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/enrollments/ticket") - .build(); + .addPathSegments("guardian/enrollments/ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -63,7 +67,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -120,13 +124,17 @@ public ManagementApiHttpResponse get(Strin */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -168,23 +176,27 @@ public ManagementApiHttpResponse get( } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java index 8924c671..09ddffd7 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java @@ -37,22 +37,26 @@ public RawFactorsClient(ClientOptions clientOptions) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public ManagementApiHttpResponse> list() { return list(null); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors") - .build(); + .addPathSegments("guardian/factors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,11 +110,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( GuardianFactorNameEnum name, SetGuardianFactorRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/factors") - .addPathSegment(name.toString()) - .build(); + .addPathSegment(name.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -119,7 +127,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java index ec7b75cf..2305d3dd 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java @@ -34,34 +34,38 @@ public RawPoliciesClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> list() { return list(null); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -103,33 +107,37 @@ public ManagementApiHttpResponse> list(RequestOptions reques } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> set(List request) { return set(request, null); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> set( List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -138,7 +146,7 @@ public ManagementApiHttpResponse> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java index 3c395b10..955dcc44 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java @@ -37,14 +37,14 @@ public AsyncRawPhoneClient withRawResponse() { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture getMessageTypes() { return this.rawClient.getMessageTypes().thenApply(response -> response.body()); } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture getMessageTypes( RequestOptions requestOptions) { @@ -52,7 +52,7 @@ public CompletableFuture getM } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -60,7 +60,7 @@ public CompletableFuture setM } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { @@ -68,14 +68,14 @@ public CompletableFuture setM } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture getTwilioProvider() { return this.rawClient.getTwilioProvider().thenApply(response -> response.body()); } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture getTwilioProvider( RequestOptions requestOptions) { @@ -83,14 +83,22 @@ public CompletableFuture g } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture setTwilioProvider() { return this.rawClient.setTwilioProvider().thenApply(response -> response.body()); } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. + */ + public CompletableFuture setTwilioProvider( + RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -98,7 +106,7 @@ public CompletableFuture s } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java index fa448b77..7b2e4da6 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java @@ -64,6 +64,14 @@ public CompletableFuture response.body()); } + /** + * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture setApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.setApnsProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -87,6 +95,14 @@ public CompletableFuture response.body()); } + /** + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture updateApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateApnsProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -110,6 +126,13 @@ public CompletableFuture> setFcmProvider() { return this.rawClient.setFcmProvider().thenApply(response -> response.body()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture> setFcmProvider(RequestOptions requestOptions) { + return this.rawClient.setFcmProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -133,6 +156,13 @@ public CompletableFuture> updateFcmProvider() { return this.rawClient.updateFcmProvider().thenApply(response -> response.body()); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture> updateFcmProvider(RequestOptions requestOptions) { + return this.rawClient.updateFcmProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -156,6 +186,13 @@ public CompletableFuture> setFcmv1Provider() { return this.rawClient.setFcmv1Provider().thenApply(response -> response.body()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture> setFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.setFcmv1Provider(requestOptions).thenApply(response -> response.body()); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -179,6 +216,13 @@ public CompletableFuture> updateFcmv1Provider() { return this.rawClient.updateFcmv1Provider().thenApply(response -> response.body()); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture> updateFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.updateFcmv1Provider(requestOptions).thenApply(response -> response.body()); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -196,14 +240,14 @@ public CompletableFuture> updateFcmv1Provider( } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture getSnsProvider() { return this.rawClient.getSnsProvider().thenApply(response -> response.body()); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture getSnsProvider( RequestOptions requestOptions) { @@ -211,14 +255,22 @@ public CompletableFuture getSnsPro } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture setSnsProvider() { return this.rawClient.setSnsProvider().thenApply(response -> response.body()); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture setSnsProvider( + RequestOptions requestOptions) { + return this.rawClient.setSnsProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -226,7 +278,7 @@ public CompletableFutureAWS SNS push notification provider configuration (subscription required). */ public CompletableFuture setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -234,14 +286,22 @@ public CompletableFutureAWS SNS push notification provider configuration (subscription required). */ public CompletableFuture updateSnsProvider() { return this.rawClient.updateSnsProvider().thenApply(response -> response.body()); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture updateSnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateSnsProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -249,7 +309,7 @@ public CompletableFutureAWS SNS push notification provider configuration (subscription required). */ public CompletableFuture updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -257,14 +317,14 @@ public CompletableFutureConfigure Push Notifications for MFA. */ public CompletableFuture getSelectedProvider() { return this.rawClient.getSelectedProvider().thenApply(response -> response.body()); } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture getSelectedProvider( RequestOptions requestOptions) { @@ -272,7 +332,7 @@ public CompletableFutureConfigure Push Notifications for MFA. */ public CompletableFuture setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -280,7 +340,7 @@ public CompletableFutureConfigure Push Notifications for MFA. */ public CompletableFuture setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java index 69bd7511..3071a7d4 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java @@ -48,7 +48,7 @@ public AsyncRawPhoneClient(ClientOptions clientOptions) { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> getMessageTypes() { @@ -56,16 +56,20 @@ public AsyncRawPhoneClient(ClientOptions clientOptions) { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> getMessageTypes(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -127,7 +131,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> setMessageTypes(SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -135,14 +139,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> setMessageTypes(SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -151,7 +159,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -219,7 +227,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> getTwilioProvider() { @@ -227,16 +235,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> getTwilioProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -298,7 +310,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> setTwilioProvider() { @@ -307,7 +319,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. + */ + public CompletableFuture> + setTwilioProvider(RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderPhoneTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> setTwilioProvider(SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -315,15 +336,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -332,7 +357,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -407,12 +432,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { */ public CompletableFuture> getSelectedProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -480,10 +509,14 @@ public CompletableFuture> setProvider( SetGuardianFactorsProviderPhoneRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -492,7 +525,7 @@ public CompletableFuture> getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -645,10 +682,14 @@ public CompletableFuture> setTemplates( SetGuardianFactorPhoneTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -657,7 +698,7 @@ public CompletableFuture> getApnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -141,6 +145,17 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture> + setApnsProvider(RequestOptions requestOptions) { + return setApnsProvider( + SetGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -156,10 +171,14 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { setApnsProvider( SetGuardianFactorsProviderPushNotificationApnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -168,7 +187,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -241,6 +260,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { .build()); } + /** + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture< + ManagementApiHttpResponse> + updateApnsProvider(RequestOptions requestOptions) { + return updateApnsProvider( + UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -258,10 +289,14 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { updateApnsProvider( UpdateGuardianFactorsProviderPushNotificationApnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -270,7 +305,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -341,6 +376,17 @@ public CompletableFuture>> setFcmP .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture>> setFcmProvider( + RequestOptions requestOptions) { + return setFcmProvider( + SetGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -354,10 +400,14 @@ public CompletableFuture>> setFcmP */ public CompletableFuture>> setFcmProvider( SetGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -366,7 +416,7 @@ public CompletableFuture>> setFcmP throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -435,6 +485,17 @@ public CompletableFuture>> updateF .build()); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture>> updateFcmProvider( + RequestOptions requestOptions) { + return updateFcmProvider( + UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -448,10 +509,14 @@ public CompletableFuture>> updateF */ public CompletableFuture>> updateFcmProvider( UpdateGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -460,7 +525,7 @@ public CompletableFuture>> updateF throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -529,6 +594,17 @@ public CompletableFuture>> setFcmv .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture>> setFcmv1Provider( + RequestOptions requestOptions) { + return setFcmv1Provider( + SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -542,10 +618,14 @@ public CompletableFuture>> setFcmv */ public CompletableFuture>> setFcmv1Provider( SetGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -554,7 +634,7 @@ public CompletableFuture>> setFcmv throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -623,6 +703,17 @@ public CompletableFuture>> updateF .build()); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture>> updateFcmv1Provider( + RequestOptions requestOptions) { + return updateFcmv1Provider( + UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -636,10 +727,14 @@ public CompletableFuture>> updateF */ public CompletableFuture>> updateFcmv1Provider( UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -648,7 +743,7 @@ public CompletableFuture>> updateF throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -710,23 +805,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture> getSnsProvider() { return getSnsProvider(null); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture> getSnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -788,7 +887,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> setSnsProvider() { @@ -797,7 +896,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture> + setSnsProvider(RequestOptions requestOptions) { + return setSnsProvider( + SetGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> setSnsProvider(SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -805,16 +915,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -823,7 +937,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -887,7 +1001,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> updateSnsProvider() { @@ -896,7 +1010,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture> + updateSnsProvider(RequestOptions requestOptions) { + return updateSnsProvider( + UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> updateSnsProvider(UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -904,16 +1029,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -922,7 +1051,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -986,7 +1115,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> getSelectedProvider() { @@ -994,16 +1123,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> getSelectedProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -1066,7 +1199,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> setProvider(SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -1074,15 +1207,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -1091,7 +1228,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java index d9bab8e3..99d89351 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java @@ -44,8 +44,8 @@ public AsyncRawSmsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture> @@ -54,18 +54,22 @@ public AsyncRawSmsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture> getTwilioProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -127,8 +131,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture> @@ -138,8 +142,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public CompletableFuture> + setTwilioProvider(RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderSmsTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture> @@ -148,17 +163,21 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture> setTwilioProvider( SetGuardianFactorsProviderSmsTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -167,7 +186,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -230,8 +249,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture> @@ -240,18 +259,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture> getSelectedProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -313,8 +336,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture> setProvider( @@ -323,16 +346,20 @@ public CompletableFuture<b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant. + * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. + *
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture> setProvider( SetGuardianFactorsProviderSmsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -341,7 +368,7 @@ public CompletableFuture<b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant. + * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. + *
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture> getTemplates() { @@ -413,18 +440,22 @@ public CompletableFuture<b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant. + * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. + *
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture> getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -486,8 +517,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture> setTemplates( @@ -496,16 +527,20 @@ public CompletableFuture<b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification. + * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. + *
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture> setTemplates( SetGuardianFactorSmsTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -514,7 +549,7 @@ public CompletableFutureA new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead. + * Retrieve the Twilio SMS provider configuration (subscription required). + *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture getTwilioProvider() { @@ -43,8 +43,8 @@ public CompletableFuture get } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture getTwilioProvider( @@ -53,8 +53,8 @@ public CompletableFuture get } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture setTwilioProvider() { @@ -62,8 +62,18 @@ public CompletableFuture set } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public CompletableFuture setTwilioProvider( + RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture setTwilioProvider( @@ -72,8 +82,8 @@ public CompletableFuture set } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture setTwilioProvider( @@ -82,8 +92,8 @@ public CompletableFuture set } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture getSelectedProvider() { @@ -91,8 +101,8 @@ public CompletableFuture getSelect } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture getSelectedProvider( @@ -101,8 +111,8 @@ public CompletableFuture getSelect } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture setProvider( @@ -111,8 +121,8 @@ public CompletableFuture setProvid } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture setProvider( @@ -121,8 +131,8 @@ public CompletableFuture setProvid } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture getTemplates() { @@ -130,8 +140,8 @@ public CompletableFuture getTempla } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture getTemplates(RequestOptions requestOptions) { @@ -139,8 +149,8 @@ public CompletableFuture getTempla } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture setTemplates( @@ -149,8 +159,8 @@ public CompletableFuture setTempla } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture setTemplates( diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java index 0bbe2445..baae8b16 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java @@ -36,21 +36,21 @@ public RawPhoneClient withRawResponse() { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public GetGuardianFactorPhoneMessageTypesResponseContent getMessageTypes() { return this.rawClient.getMessageTypes().body(); } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public GetGuardianFactorPhoneMessageTypesResponseContent getMessageTypes(RequestOptions requestOptions) { return this.rawClient.getMessageTypes(requestOptions).body(); } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -58,7 +58,7 @@ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { @@ -66,28 +66,35 @@ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public GetGuardianFactorsProviderPhoneTwilioResponseContent getTwilioProvider() { return this.rawClient.getTwilioProvider().body(); } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public GetGuardianFactorsProviderPhoneTwilioResponseContent getTwilioProvider(RequestOptions requestOptions) { return this.rawClient.getTwilioProvider(requestOptions).body(); } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider() { return this.rawClient.setTwilioProvider().body(); } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. + */ + public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider(RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).body(); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -95,7 +102,7 @@ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider( } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java index 8e3b9712..d12bafc6 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java @@ -62,6 +62,14 @@ public SetGuardianFactorsProviderPushNotificationApnsResponseContent setApnsProv return this.rawClient.setApnsProvider().body(); } + /** + * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public SetGuardianFactorsProviderPushNotificationApnsResponseContent setApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.setApnsProvider(requestOptions).body(); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -85,6 +93,14 @@ public UpdateGuardianFactorsProviderPushNotificationApnsResponseContent updateAp return this.rawClient.updateApnsProvider().body(); } + /** + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public UpdateGuardianFactorsProviderPushNotificationApnsResponseContent updateApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateApnsProvider(requestOptions).body(); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -108,6 +124,13 @@ public Map setFcmProvider() { return this.rawClient.setFcmProvider().body(); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public Map setFcmProvider(RequestOptions requestOptions) { + return this.rawClient.setFcmProvider(requestOptions).body(); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -130,6 +153,13 @@ public Map updateFcmProvider() { return this.rawClient.updateFcmProvider().body(); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public Map updateFcmProvider(RequestOptions requestOptions) { + return this.rawClient.updateFcmProvider(requestOptions).body(); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -153,6 +183,13 @@ public Map setFcmv1Provider() { return this.rawClient.setFcmv1Provider().body(); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public Map setFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.setFcmv1Provider(requestOptions).body(); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -175,6 +212,13 @@ public Map updateFcmv1Provider() { return this.rawClient.updateFcmv1Provider().body(); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public Map updateFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.updateFcmv1Provider(requestOptions).body(); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -192,28 +236,35 @@ public Map updateFcmv1Provider( } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderSnsResponseContent getSnsProvider() { return this.rawClient.getSnsProvider().body(); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderSnsResponseContent getSnsProvider(RequestOptions requestOptions) { return this.rawClient.getSnsProvider(requestOptions).body(); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider() { return this.rawClient.setSnsProvider().body(); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider(RequestOptions requestOptions) { + return this.rawClient.setSnsProvider(requestOptions).body(); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -221,7 +272,7 @@ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvid } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -229,14 +280,22 @@ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvid } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider() { return this.rawClient.updateSnsProvider().body(); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateSnsProvider(requestOptions).body(); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -244,7 +303,7 @@ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSns } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -252,14 +311,14 @@ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSns } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderPushNotificationResponseContent getSelectedProvider() { return this.rawClient.getSelectedProvider().body(); } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderPushNotificationResponseContent getSelectedProvider( RequestOptions requestOptions) { @@ -267,7 +326,7 @@ public GetGuardianFactorsProviderPushNotificationResponseContent getSelectedProv } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public SetGuardianFactorsProviderPushNotificationResponseContent setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -275,7 +334,7 @@ public SetGuardianFactorsProviderPushNotificationResponseContent setProvider( } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public SetGuardianFactorsProviderPushNotificationResponseContent setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java index 3977ed15..440e0799 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java @@ -44,23 +44,27 @@ public RawPhoneClient(ClientOptions clientOptions) { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse getMessageTypes() { return getMessageTypes(null); } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse getMessageTypes( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -102,7 +106,7 @@ public ManagementApiHttpResponsephone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -110,14 +114,18 @@ public ManagementApiHttpResponsephone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -126,7 +134,7 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse getTwilioProvider() { return getTwilioProvider(null); } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse getTwilioProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -230,7 +242,7 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse setTwilioProvider() { return setTwilioProvider( @@ -238,7 +250,16 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. + */ + public ManagementApiHttpResponse setTwilioProvider( + RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderPhoneTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -246,14 +267,18 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -262,7 +287,7 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getSelectedProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -369,10 +398,14 @@ public ManagementApiHttpResponse public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderPhoneRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -381,7 +414,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -435,12 +468,16 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -494,10 +531,14 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse setTemplates( SetGuardianFactorPhoneTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -506,7 +547,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java index a7eff43a..3bf70718 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java @@ -61,12 +61,16 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getApnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -115,6 +119,17 @@ public ManagementApiHttpResponse setApnsProvider( + RequestOptions requestOptions) { + return setApnsProvider( + SetGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -128,10 +143,14 @@ public ManagementApiHttpResponse setApnsProvider( SetGuardianFactorsProviderPushNotificationApnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +159,7 @@ public ManagementApiHttpResponse + updateApnsProvider(RequestOptions requestOptions) { + return updateApnsProvider( + UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -207,10 +237,14 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -219,7 +253,7 @@ public ManagementApiHttpResponse> setFcmProvider() { .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public ManagementApiHttpResponse> setFcmProvider(RequestOptions requestOptions) { + return setFcmProvider( + SetGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -283,10 +327,14 @@ public ManagementApiHttpResponse> setFcmProvider( */ public ManagementApiHttpResponse> setFcmProvider( SetGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -295,7 +343,7 @@ public ManagementApiHttpResponse> setFcmProvider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -345,6 +393,16 @@ public ManagementApiHttpResponse> updateFcmProvider() { .build()); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public ManagementApiHttpResponse> updateFcmProvider(RequestOptions requestOptions) { + return updateFcmProvider( + UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -358,10 +416,14 @@ public ManagementApiHttpResponse> updateFcmProvider( */ public ManagementApiHttpResponse> updateFcmProvider( UpdateGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -370,7 +432,7 @@ public ManagementApiHttpResponse> updateFcmProvider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -420,6 +482,16 @@ public ManagementApiHttpResponse> setFcmv1Provider() { .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public ManagementApiHttpResponse> setFcmv1Provider(RequestOptions requestOptions) { + return setFcmv1Provider( + SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -433,10 +505,14 @@ public ManagementApiHttpResponse> setFcmv1Provider( */ public ManagementApiHttpResponse> setFcmv1Provider( SetGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -445,7 +521,7 @@ public ManagementApiHttpResponse> setFcmv1Provider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -495,6 +571,16 @@ public ManagementApiHttpResponse> updateFcmv1Provider() { .build()); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public ManagementApiHttpResponse> updateFcmv1Provider(RequestOptions requestOptions) { + return updateFcmv1Provider( + UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -508,10 +594,14 @@ public ManagementApiHttpResponse> updateFcmv1Provider( */ public ManagementApiHttpResponse> updateFcmv1Provider( UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -520,7 +610,7 @@ public ManagementApiHttpResponse> updateFcmv1Provider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -563,23 +653,27 @@ public ManagementApiHttpResponse> updateFcmv1Provider( } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public ManagementApiHttpResponse getSnsProvider() { return getSnsProvider(null); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public ManagementApiHttpResponse getSnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -621,7 +715,7 @@ public ManagementApiHttpResponse g } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse setSnsProvider() { return setSnsProvider(SetGuardianFactorsProviderPushNotificationSnsRequestContent.builder() @@ -629,7 +723,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). + */ + public ManagementApiHttpResponse setSnsProvider( + RequestOptions requestOptions) { + return setSnsProvider( + SetGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -637,14 +742,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -653,7 +762,7 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse updateSnsProvider() { @@ -705,7 +814,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). + */ + public ManagementApiHttpResponse updateSnsProvider( + RequestOptions requestOptions) { + return updateSnsProvider( + UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -713,14 +833,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -729,7 +853,7 @@ public ManagementApiHttpResponseConfigure Push Notifications for MFA. */ public ManagementApiHttpResponse getSelectedProvider() { return getSelectedProvider(null); } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public ManagementApiHttpResponse getSelectedProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -831,7 +959,7 @@ public ManagementApiHttpResponseConfigure Push Notifications for MFA. */ public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -839,14 +967,18 @@ public ManagementApiHttpResponseConfigure Push Notifications for MFA. */ public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -855,7 +987,7 @@ public ManagementApiHttpResponseA new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead. + * Retrieve the Twilio SMS provider configuration (subscription required). + *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public ManagementApiHttpResponse getTwilioProvider() { @@ -49,18 +49,22 @@ public ManagementApiHttpResponseA new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead. + * Retrieve the Twilio SMS provider configuration (subscription required). + *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public ManagementApiHttpResponse getTwilioProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -102,8 +106,8 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Update the Twilio SMS provider configuration. + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public ManagementApiHttpResponse setTwilioProvider() { @@ -112,8 +116,19 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Update the Twilio SMS provider configuration. + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public ManagementApiHttpResponse setTwilioProvider( + RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderSmsTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public ManagementApiHttpResponse setTwilioProvider( @@ -122,16 +137,20 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Update the Twilio SMS provider configuration. + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public ManagementApiHttpResponse setTwilioProvider( SetGuardianFactorsProviderSmsTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +159,7 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. + * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. + *
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getSelectedProvider() { @@ -192,18 +211,22 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getSelectedProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -245,8 +268,8 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public ManagementApiHttpResponse setProvider( @@ -255,16 +278,20 @@ public ManagementApiHttpResponse s } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderSmsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -273,7 +300,7 @@ public ManagementApiHttpResponse s throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -316,8 +343,8 @@ public ManagementApiHttpResponse s } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getTemplates() { @@ -325,18 +352,22 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -378,8 +409,8 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public ManagementApiHttpResponse setTemplates( @@ -388,16 +419,20 @@ public ManagementApiHttpResponse s } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public ManagementApiHttpResponse setTemplates( SetGuardianFactorSmsTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -406,7 +441,7 @@ public ManagementApiHttpResponse s throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java index 5963a5de..9120fdab 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java @@ -33,8 +33,8 @@ public RawSmsClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider() { @@ -42,8 +42,8 @@ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider() { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider(RequestOptions requestOptions) { @@ -51,8 +51,8 @@ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider(Requ } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider() { @@ -60,8 +60,17 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider() { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider(RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).body(); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( @@ -70,8 +79,8 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( @@ -80,8 +89,8 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider() { @@ -89,8 +98,8 @@ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider() { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider(RequestOptions requestOptions) { @@ -98,8 +107,8 @@ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider(RequestO } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public SetGuardianFactorsProviderSmsResponseContent setProvider( @@ -108,8 +117,8 @@ public SetGuardianFactorsProviderSmsResponseContent setProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public SetGuardianFactorsProviderSmsResponseContent setProvider( @@ -118,8 +127,8 @@ public SetGuardianFactorsProviderSmsResponseContent setProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { @@ -127,8 +136,8 @@ public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public GetGuardianFactorSmsTemplatesResponseContent getTemplates(RequestOptions requestOptions) { @@ -136,8 +145,8 @@ public GetGuardianFactorSmsTemplatesResponseContent getTemplates(RequestOptions } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public SetGuardianFactorSmsTemplatesResponseContent setTemplates( @@ -146,8 +155,8 @@ public SetGuardianFactorSmsTemplatesResponseContent setTemplates( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public SetGuardianFactorSmsTemplatesResponseContent setTemplates( diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java index 48d8f043..6033e08a 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,6 +128,14 @@ public CompletableFuture> set( + RequestOptions requestOptions) { + return set(SetGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -137,10 +149,14 @@ public CompletableFuture> set( SetGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -149,7 +165,7 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( UpdateGuardianFactorDuoSettingsRequestContent request) { return update(request, null); @@ -222,10 +243,14 @@ public CompletableFuture> update( UpdateGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -234,7 +259,7 @@ public CompletableFuture set() { return this.rawClient.set().thenApply(response -> response.body()); } + /** + * Set the DUO account configuration and other properties specific to this factor. + */ + public CompletableFuture set(RequestOptions requestOptions) { + return this.rawClient.set(requestOptions).thenApply(response -> response.body()); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -70,6 +77,10 @@ public CompletableFuture update( return this.rawClient.update().thenApply(response -> response.body()); } + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( UpdateGuardianFactorDuoSettingsRequestContent request) { return this.rawClient.update(request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java index 421dd9a5..c14fc393 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse ge * Retrieves the DUO account and factor configuration. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -99,6 +103,13 @@ public ManagementApiHttpResponse se return set(SetGuardianFactorDuoSettingsRequestContent.builder().build()); } + /** + * Set the DUO account configuration and other properties specific to this factor. + */ + public ManagementApiHttpResponse set(RequestOptions requestOptions) { + return set(SetGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -112,10 +123,14 @@ public ManagementApiHttpResponse se */ public ManagementApiHttpResponse set( SetGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -124,7 +139,7 @@ public ManagementApiHttpResponse se throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -170,6 +185,11 @@ public ManagementApiHttpResponse return update(UpdateGuardianFactorDuoSettingsRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update(UpdateGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( UpdateGuardianFactorDuoSettingsRequestContent request) { return update(request, null); @@ -177,10 +197,14 @@ public ManagementApiHttpResponse public ManagementApiHttpResponse update( UpdateGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +213,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java index 043252cd..a1d446c7 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java @@ -49,6 +49,13 @@ public SetGuardianFactorDuoSettingsResponseContent set() { return this.rawClient.set().body(); } + /** + * Set the DUO account configuration and other properties specific to this factor. + */ + public SetGuardianFactorDuoSettingsResponseContent set(RequestOptions requestOptions) { + return this.rawClient.set(requestOptions).body(); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -68,6 +75,10 @@ public UpdateGuardianFactorDuoSettingsResponseContent update() { return this.rawClient.update().body(); } + public UpdateGuardianFactorDuoSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + public UpdateGuardianFactorDuoSettingsResponseContent update( UpdateGuardianFactorDuoSettingsRequestContent request) { return this.rawClient.update(request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java index b830c878..3d5979e8 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public SetGuardianFactorDuoSettingsRequestContent build() { return new SetGuardianFactorDuoSettingsRequestContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java index aac1ee02..df8bed36 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public UpdateGuardianFactorDuoSettingsRequestContent build() { return new UpdateGuardianFactorDuoSettingsRequestContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java index 09209a2d..47ee59c7 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllMessageTypes(List public SetGuardianFactorPhoneMessageTypesRequestContent build() { return new SetGuardianFactorPhoneMessageTypesRequestContent(messageTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java index 8dd8996b..0ae80d52 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorPhoneTemplatesRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorPhoneTemplatesRequestContent build() { return new SetGuardianFactorPhoneTemplatesRequestContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java index f11acb96..b3acce3e 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorSmsTemplatesRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorSmsTemplatesRequestContent build() { return new SetGuardianFactorSmsTemplatesRequestContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java index db749481..5506f13b 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java @@ -73,6 +73,10 @@ public interface ProviderStage { public interface _FinalStage { SetGuardianFactorsProviderPhoneRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -101,5 +105,17 @@ public _FinalStage provider(@NotNull GuardianFactorsProviderSmsProviderEnum prov public SetGuardianFactorsProviderPhoneRequestContent build() { return new SetGuardianFactorsProviderPhoneRequestContent(provider, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java index fd52ad20..eaa5d94f 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderPhoneTwilioRequestContent build() { return new SetGuardianFactorsProviderPhoneTwilioRequestContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java index bb64d5a9..5f2f21cc 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java @@ -204,5 +204,15 @@ public SetGuardianFactorsProviderPushNotificationApnsRequestContent build() { return new SetGuardianFactorsProviderPushNotificationApnsRequestContent( sandbox, bundleId, p12, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java index c1222a5c..b9b6fb06 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java @@ -126,5 +126,15 @@ public Builder serverKey(com.auth0.client.mgmt.core.Nullable serverKey) public SetGuardianFactorsProviderPushNotificationFcmRequestContent build() { return new SetGuardianFactorsProviderPushNotificationFcmRequestContent(serverKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java index 00e72f51..433aea78 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java @@ -127,5 +127,15 @@ public SetGuardianFactorsProviderPushNotificationFcmv1RequestContent build() { return new SetGuardianFactorsProviderPushNotificationFcmv1RequestContent( serverCredentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java index 2c04c266..4a5e8452 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java @@ -74,6 +74,10 @@ public interface ProviderStage { public interface _FinalStage { SetGuardianFactorsProviderPushNotificationRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -102,5 +106,17 @@ public _FinalStage provider(@NotNull GuardianFactorsProviderPushNotificationProv public SetGuardianFactorsProviderPushNotificationRequestContent build() { return new SetGuardianFactorsProviderPushNotificationRequestContent(provider, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java index badfad30..6db63a62 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java @@ -356,5 +356,15 @@ public SetGuardianFactorsProviderPushNotificationSnsRequestContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java index 7d041b21..937ea11c 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java @@ -73,6 +73,10 @@ public interface ProviderStage { public interface _FinalStage { SetGuardianFactorsProviderSmsRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -101,5 +105,17 @@ public _FinalStage provider(@NotNull GuardianFactorsProviderSmsProviderEnum prov public SetGuardianFactorsProviderSmsRequestContent build() { return new SetGuardianFactorsProviderSmsRequestContent(provider, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java index df428ac9..80c379ee 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderSmsTwilioRequestContent build() { return new SetGuardianFactorsProviderSmsTwilioRequestContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java index 64ebbc40..922526e7 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java @@ -204,5 +204,15 @@ public UpdateGuardianFactorsProviderPushNotificationApnsRequestContent build() { return new UpdateGuardianFactorsProviderPushNotificationApnsRequestContent( sandbox, bundleId, p12, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java index 26c1b64e..6f92a321 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java @@ -126,5 +126,15 @@ public Builder serverKey(com.auth0.client.mgmt.core.Nullable serverKey) public UpdateGuardianFactorsProviderPushNotificationFcmRequestContent build() { return new UpdateGuardianFactorsProviderPushNotificationFcmRequestContent(serverKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java index 7c62c724..f2867635 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java @@ -127,5 +127,15 @@ public UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent build() return new UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent( serverCredentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java index 1b2f29ee..40a64c06 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java @@ -356,5 +356,15 @@ public UpdateGuardianFactorsProviderPushNotificationSnsRequestContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java index 680a9edd..e55872ce 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java @@ -91,7 +91,7 @@ public Optional getFactor() { } /** - * @return Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. + * @return Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. */ @JsonProperty("allow_multiple_enrollments") public Optional getAllowMultipleEnrollments() { @@ -146,6 +146,10 @@ public interface UserIdStage { public interface _FinalStage { CreateGuardianEnrollmentTicketRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address

    */ @@ -172,7 +176,7 @@ public interface _FinalStage { _FinalStage factor(GuardianEnrollmentFactorEnum factor); /** - *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    + *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    */ _FinalStage allowMultipleEnrollments(Optional allowMultipleEnrollments); @@ -222,7 +226,7 @@ public _FinalStage userId(@NotNull String userId) { } /** - *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    + *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -232,7 +236,7 @@ public _FinalStage allowMultipleEnrollments(Boolean allowMultipleEnrollments) { } /** - *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    + *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    */ @java.lang.Override @JsonSetter(value = "allow_multiple_enrollments", nulls = Nulls.SKIP) @@ -319,5 +323,17 @@ public CreateGuardianEnrollmentTicketRequestContent build() { return new CreateGuardianEnrollmentTicketRequestContent( userId, email, sendMail, emailLocale, factor, allowMultipleEnrollments, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java index 1f50447d..b20967eb 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java @@ -75,6 +75,10 @@ public interface EnabledStage { public interface _FinalStage { SetGuardianFactorRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -108,5 +112,17 @@ public _FinalStage enabled(boolean enabled) { public SetGuardianFactorRequestContent build() { return new SetGuardianFactorRequestContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java index 29879ba8..1dc678ac 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java @@ -52,14 +52,18 @@ public CompletableFuture>> get(Str */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -141,12 +145,16 @@ public CompletableFuture> create(String id, Map< */ public CompletableFuture> create( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -155,7 +163,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -235,12 +243,16 @@ public CompletableFuture> delete(String id, List */ public CompletableFuture> delete( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -249,7 +261,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -324,12 +336,16 @@ public CompletableFuture> update(String id, Map< */ public CompletableFuture> update( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -338,7 +354,7 @@ public CompletableFuture> update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java index aa30296e..7a1fddb0 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java @@ -47,14 +47,18 @@ public ManagementApiHttpResponse> get(String id) { * Retrieve a hook's secrets by the ID of the hook. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -113,12 +117,16 @@ public ManagementApiHttpResponse create(String id, Map req */ public ManagementApiHttpResponse create( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -127,7 +135,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -183,12 +191,16 @@ public ManagementApiHttpResponse delete(String id, List request) { * Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. */ public ManagementApiHttpResponse delete(String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -197,7 +209,7 @@ public ManagementApiHttpResponse delete(String id, List request, R throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -251,12 +263,16 @@ public ManagementApiHttpResponse update(String id, Map req */ public ManagementApiHttpResponse update( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -265,7 +281,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java index 03417da7..83a2e1ab 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java @@ -47,14 +47,18 @@ public CompletableFuture> get(Strin */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") .addPathSegment(id) - .addPathSegments("errors") - .build(); + .addPathSegments("errors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java index ed62d74e..89cd124c 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java @@ -44,6 +44,14 @@ public CompletableFuture> create( + RequestOptions requestOptions) { + return create(CreateExportUsersRequestContent.builder().build(), requestOptions); + } + /** * Export all users to a file via a long-running job. */ @@ -57,10 +65,14 @@ public CompletableFuture> create( CreateExportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-exports") - .build(); + .addPathSegments("jobs/users-exports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -69,7 +81,7 @@ public CompletableFutureemail_verified
    is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture> create( File users, CreateImportUsersRequestContent request) { @@ -53,14 +53,18 @@ public CompletableFutureemail_verified
    is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture> create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); try { String usersMimeType = Files.probeContentType(users.toPath()); @@ -91,7 +95,7 @@ public CompletableFuture> create( InputStream stream, String filename) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -252,16 +255,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { public CompletableFuture> create( InputStream stream, String filename, MediaType mediaType) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -335,16 +337,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { public CompletableFuture> create( InputStream stream, String filename, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); @@ -421,16 +427,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { public CompletableFuture> create( InputStream stream, String filename, MediaType mediaType, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java index 067880b4..28d51b77 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java @@ -38,7 +38,7 @@ public AsyncRawVerificationEmailClient(ClientOptions clientOptions) { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture> create( @@ -47,15 +47,19 @@ public CompletableFutureverify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture> create( CreateVerificationEmailRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/verification-email") - .build(); + .addPathSegments("jobs/verification-email"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -64,7 +68,7 @@ public CompletableFuture create() { return this.rawClient.create().thenApply(response -> response.body()); } + /** + * Export all users to a file via a long-running job. + */ + public CompletableFuture create(RequestOptions requestOptions) { + return this.rawClient.create(requestOptions).thenApply(response -> response.body()); + } + /** * Export all users to a file via a long-running job. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java index 3e5e3266..43e2cdc7 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java @@ -30,7 +30,7 @@ public AsyncRawUsersImportsClient withRawResponse() { } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture create( File users, CreateImportUsersRequestContent request) { @@ -38,7 +38,7 @@ public CompletableFuture create( } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java index 5533d81c..2d40316f 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java @@ -27,7 +27,7 @@ public AsyncRawVerificationEmailClient withRawResponse() { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture create( @@ -36,7 +36,7 @@ public CompletableFuture create( } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture create( diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java index 0c939a32..a56fe583 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java @@ -42,14 +42,18 @@ public ManagementApiHttpResponse get(String id) { * Retrieve error details of a failed job. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") .addPathSegment(id) - .addPathSegments("errors") - .build(); + .addPathSegments("errors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java index 31e18ab6..dfbf7adc 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java @@ -40,6 +40,13 @@ public ManagementApiHttpResponse create() { return create(CreateExportUsersRequestContent.builder().build()); } + /** + * Export all users to a file via a long-running job. + */ + public ManagementApiHttpResponse create(RequestOptions requestOptions) { + return create(CreateExportUsersRequestContent.builder().build(), requestOptions); + } + /** * Export all users to a file via a long-running job. */ @@ -52,10 +59,14 @@ public ManagementApiHttpResponse create(Create */ public ManagementApiHttpResponse create( CreateExportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-exports") - .build(); + .addPathSegments("jobs/users-exports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -64,7 +75,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java index 15d463e8..c9f975a6 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java @@ -41,7 +41,7 @@ public RawUsersImportsClient(ClientOptions clientOptions) { } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public ManagementApiHttpResponse create( File users, CreateImportUsersRequestContent request) { @@ -49,14 +49,18 @@ public ManagementApiHttpResponse create( } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public ManagementApiHttpResponse create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); try { String usersMimeType = Files.probeContentType(users.toPath()); @@ -87,7 +91,7 @@ public ManagementApiHttpResponse create( throw new RuntimeException(e); } Request.Builder _requestBuilder = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", multipartBodyBuilder.build()) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json"); @@ -137,16 +141,15 @@ public ManagementApiHttpResponse create( } public ManagementApiHttpResponse create(InputStream stream, String filename) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -193,16 +196,15 @@ public ManagementApiHttpResponse create(InputS public ManagementApiHttpResponse create( InputStream stream, String filename, MediaType mediaType) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -249,16 +251,20 @@ public ManagementApiHttpResponse create( public ManagementApiHttpResponse create( InputStream stream, String filename, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); @@ -308,16 +314,20 @@ public ManagementApiHttpResponse create( public ManagementApiHttpResponse create( InputStream stream, String filename, MediaType mediaType, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java index f795154a..72fe8976 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java @@ -34,7 +34,7 @@ public RawVerificationEmailClient(ClientOptions clientOptions) { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public ManagementApiHttpResponse create( @@ -43,15 +43,19 @@ public ManagementApiHttpResponse create( } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public ManagementApiHttpResponse create( CreateVerificationEmailRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/verification-email") - .build(); + .addPathSegments("jobs/verification-email"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -60,7 +64,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java index 1599e2ce..5ee2294c 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java @@ -32,6 +32,13 @@ public CreateExportUsersResponseContent create() { return this.rawClient.create().body(); } + /** + * Export all users to a file via a long-running job. + */ + public CreateExportUsersResponseContent create(RequestOptions requestOptions) { + return this.rawClient.create(requestOptions).body(); + } + /** * Export all users to a file via a long-running job. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java index 19cd59ea..e7eb6d84 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java @@ -29,14 +29,14 @@ public RawUsersImportsClient withRawResponse() { } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CreateImportUsersResponseContent create(File users, CreateImportUsersRequestContent request) { return this.rawClient.create(users, request).body(); } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CreateImportUsersResponseContent create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java index d00c8a7b..2049462c 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java @@ -26,7 +26,7 @@ public RawVerificationEmailClient withRawResponse() { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CreateVerificationEmailResponseContent create(CreateVerificationEmailRequestContent request) { @@ -34,7 +34,7 @@ public CreateVerificationEmailResponseContent create(CreateVerificationEmailRequ } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CreateVerificationEmailResponseContent create( diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java index 363375c5..6a466cb0 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java @@ -186,5 +186,15 @@ public Builder fields(List fields) { public CreateExportUsersRequestContent build() { return new CreateExportUsersRequestContent(connectionId, format, limit, fields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java index ef399ab4..f37eec35 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java @@ -120,6 +120,10 @@ public interface ConnectionIdStage { public interface _FinalStage { CreateImportUsersRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether to update users if they already exist (true) or to ignore them (false).

    */ @@ -243,5 +247,17 @@ public CreateImportUsersRequestContent build() { return new CreateImportUsersRequestContent( connectionId, upsert, externalId, sendCompletionEmail, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java index 2aefa6c3..93bc0061 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java @@ -119,6 +119,10 @@ public interface UserIdStage { public interface _FinalStage { CreateVerificationEmailRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    client_id of the client (application). If no value provided, the global Client ID will be used.

    */ @@ -232,5 +236,17 @@ public CreateVerificationEmailRequestContent build() { return new CreateVerificationEmailRequestContent( userId, clientId, identity, organizationId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java index fab4f4f5..443cedaa 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java @@ -40,6 +40,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve details of all the encryption keys associated with your tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java index 0d30c22b..c934e084 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -135,10 +139,14 @@ public CompletableFuture> set( SetCustomSigningKeysRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +155,7 @@ public CompletableFuture> delete() { * Delete entire jwks representation of custom signing keys. */ public CompletableFuture> delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java index 1d6508d0..d22e3d05 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java @@ -58,6 +58,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListEncryptionKeysRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -177,10 +190,14 @@ public CompletableFuture> create( CreateEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption") - .build(); + .addPathSegments("keys/encryption"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +206,7 @@ public CompletableFuture> rekey() { * Perform rekeying operation on the key hierarchy. */ public CompletableFuture> rekey(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption/rekey") - .build(); + .addPathSegments("keys/encryption/rekey"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -346,13 +367,17 @@ public CompletableFuture> get( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -436,11 +461,15 @@ public CompletableFuture> import_( String kid, ImportEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -449,7 +478,7 @@ public CompletableFuture> delete(String kid) { * Delete the custom provided encryption key with the given ID and move back to using native encryption key. */ public CompletableFuture> delete(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -613,14 +646,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { */ public CompletableFuture> createPublicWrappingKey(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") .addPathSegment(kid) - .addPathSegments("wrapping-key") - .build(); + .addPathSegments("wrapping-key"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java index 56f3529a..cd711814 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java @@ -52,12 +52,16 @@ public CompletableFuture>> list() { * Retrieve details of all the application signing keys associated with your tenant. */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing") - .build(); + .addPathSegments("keys/signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -134,12 +138,16 @@ public CompletableFuture> rotate( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing/rotate") - .build(); + .addPathSegments("keys/signing/rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -212,13 +220,17 @@ public CompletableFuture> get( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -295,14 +307,18 @@ public CompletableFuture> revoke( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") .addPathSegment(kid) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java index 0830d6d7..242316be 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve details of all the encryption keys associated with your tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java index 6def929b..239c5c48 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get() { * Get entire jwks representation of custom signing keys. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -108,10 +112,14 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( SetCustomSigningKeysRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -120,7 +128,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -176,12 +184,16 @@ public ManagementApiHttpResponse delete() { * Delete entire jwks representation of custom signing keys. */ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java index 7f3857ad..4106d5ed 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java @@ -53,6 +53,13 @@ public ManagementApiHttpResponse> list() { return list(ListEncryptionKeysRequestParameters.builder().build()); } + /** + * Retrieve details of all the encryption keys associated with your tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListEncryptionKeysRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ @@ -74,6 +81,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -142,10 +154,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption") - .build(); + .addPathSegments("keys/encryption"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -154,7 +170,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -213,12 +229,16 @@ public ManagementApiHttpResponse rekey() { * Perform rekeying operation on the key hierarchy. */ public ManagementApiHttpResponse rekey(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption/rekey") - .build(); + .addPathSegments("keys/encryption/rekey"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -267,13 +287,17 @@ public ManagementApiHttpResponse get(String kid * Retrieve details of the encryption key with the given ID. */ public ManagementApiHttpResponse get(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -332,11 +356,15 @@ public ManagementApiHttpResponse import_( */ public ManagementApiHttpResponse import_( String kid, ImportEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -345,7 +373,7 @@ public ManagementApiHttpResponse import_( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -404,13 +432,17 @@ public ManagementApiHttpResponse delete(String kid) { * Delete the custom provided encryption key with the given ID and move back to using native encryption key. */ public ManagementApiHttpResponse delete(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -464,14 +496,18 @@ public ManagementApiHttpResponse createPublicWrappingKey( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") .addPathSegment(kid) - .addPathSegments("wrapping-key") - .build(); + .addPathSegments("wrapping-key"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java index 378745dd..a4c61840 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java @@ -48,12 +48,16 @@ public ManagementApiHttpResponse> list() { * Retrieve details of all the application signing keys associated with your tenant. */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing") - .build(); + .addPathSegments("keys/signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -108,12 +112,16 @@ public ManagementApiHttpResponse rotate() { * Rotate the application signing key of your tenant. */ public ManagementApiHttpResponse rotate(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing/rotate") - .build(); + .addPathSegments("keys/signing/rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -164,13 +172,17 @@ public ManagementApiHttpResponse get(String kid) * Retrieve details of the application signing key with the given ID. */ public ManagementApiHttpResponse get(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -225,14 +237,18 @@ public ManagementApiHttpResponse revoke(Strin */ public ManagementApiHttpResponse revoke( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") .addPathSegment(kid) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java index 980fad36..ca2e3f15 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java @@ -71,6 +71,10 @@ public interface TypeStage { public interface _FinalStage { CreateEncryptionKeyRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage type(@NotNull CreateEncryptionKeyType type) { public CreateEncryptionKeyRequestContent build() { return new CreateEncryptionKeyRequestContent(type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java index d87c5b36..7cd8794c 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java @@ -76,6 +76,10 @@ public interface WrappedKeyStage { public interface _FinalStage { ImportEncryptionKeyRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage wrappedKey(@NotNull String wrappedKey) { public ImportEncryptionKeyRequestContent build() { return new ImportEncryptionKeyRequestContent(wrappedKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java index 1d7cedcb..f26cd287 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListEncryptionKeysRequestParameters build() { return new ListEncryptionKeysRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java index 78249d6b..22a3bd33 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllKeys(List keys) { public SetCustomSigningKeysRequestContent build() { return new SetCustomSigningKeysRequestContent(keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java index 780a65c6..bf787e0b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java @@ -33,6 +33,11 @@ public CompletableFuture> list(Strin return this.rawClient.list(id).thenApply(response -> response.body()); } + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String id, ListOrganizationClientGrantsRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java index 7f02e401..d938c33f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java @@ -40,6 +40,14 @@ public CompletableFuture> list(S return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve list of all organization discovery domains associated with the specified organization. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -118,7 +126,7 @@ public CompletableFuture delete(String id, String discoveryDomainId, Reque } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture update( String id, String discoveryDomainId) { @@ -126,7 +134,15 @@ public CompletableFuture updat } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public CompletableFuture update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return this.rawClient.update(id, discoveryDomainId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -134,7 +150,7 @@ public CompletableFuture updat } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java index bfc2e037..2a2e134b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java @@ -39,6 +39,14 @@ public CompletableFuture> list(String return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -57,7 +65,7 @@ public CompletableFuture> list( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture add( String id, AddOrganizationConnectionRequestContent request) { @@ -66,7 +74,7 @@ public CompletableFuture add( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { @@ -90,7 +98,7 @@ public CompletableFuture get( /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture delete(String id, String connectionId) { return this.rawClient.delete(id, connectionId).thenApply(response -> response.body()); @@ -98,7 +106,7 @@ public CompletableFuture delete(String id, String connectionId) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture delete(String id, String connectionId, RequestOptions requestOptions) { return this.rawClient.delete(id, connectionId, requestOptions).thenApply(response -> response.body()); @@ -111,6 +119,14 @@ public CompletableFuture update(Str return this.rawClient.update(id, connectionId).thenApply(response -> response.body()); } + /** + * Modify the details of a specific connection currently enabled for an Organization. + */ + public CompletableFuture update( + String id, String connectionId, RequestOptions requestOptions) { + return this.rawClient.update(id, connectionId, requestOptions).thenApply(response -> response.body()); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java index e1e81ab6..f24724c1 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java @@ -32,14 +32,22 @@ public AsyncRawInvitationsClient withRawResponse() { } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -47,7 +55,7 @@ public CompletableFuture> list( } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -55,7 +63,7 @@ public CompletableFuture> list( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture create( String id, CreateOrganizationInvitationRequestContent request) { @@ -63,7 +71,7 @@ public CompletableFuture create( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { @@ -74,6 +82,11 @@ public CompletableFuture get(String id return this.rawClient.get(id, invitationId).thenApply(response -> response.body()); } + public CompletableFuture get( + String id, String invitationId, RequestOptions requestOptions) { + return this.rawClient.get(id, invitationId, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return this.rawClient.get(id, invitationId, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java index 31c2ebc5..6f6a130d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java @@ -38,22 +38,22 @@ public AsyncRawMembersClient withRawResponse() { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -62,22 +62,46 @@ public CompletableFuture> list(String id) /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture> list( String id, ListOrganizationMembersRequestParameters request) { @@ -87,22 +111,22 @@ public CompletableFuture> list( /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture> list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -110,16 +134,16 @@ public CompletableFuture> list( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture create(String id, CreateOrganizationMemberRequestContent request) { return this.rawClient.create(id, request).thenApply(response -> response.body()); } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture create( String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java index ff1f0393..08cd75b2 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java @@ -51,6 +51,11 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationClientGrantsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String id, ListOrganizationClientGrantsRequestParameters request) { return list(id, request, null); @@ -80,6 +85,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -175,12 +185,16 @@ public CompletableFuture> create( String id, AssociateOrganizationClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +203,7 @@ public CompletableFuture> delete(String id, Stri public CompletableFuture> delete( String id, String grantId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("client-grants") - .addPathSegment(grantId) - .build(); + .addPathSegment(grantId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java index 982ce062..c3252860 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java @@ -60,6 +60,15 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list( + id, ListOrganizationDiscoveryDomainsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -83,6 +92,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -186,12 +200,16 @@ public CompletableFuture> create( String id, CreateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("discovery-domains") - .build(); + .addPathSegments("discovery-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -200,7 +218,7 @@ public CompletableFuture> getByName( String id, String discoveryDomain, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains/name") - .addPathSegment(discoveryDomain) - .build(); + .addPathSegment(discoveryDomain); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -382,15 +404,19 @@ public CompletableFuture> get( String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -473,15 +499,19 @@ public CompletableFuture> delete(String id, Stri */ public CompletableFuture> delete( String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -544,7 +574,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture> update( String id, String discoveryDomainId) { @@ -555,7 +585,19 @@ public CompletableFuturestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public CompletableFuture> update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return update( + id, + discoveryDomainId, + UpdateOrganizationDiscoveryDomainRequestContent.builder().build(), + requestOptions); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture> update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -563,20 +605,24 @@ public CompletableFuturestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture> update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -585,7 +631,7 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationConnectionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -78,6 +86,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -168,7 +181,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture> add( String id, AddOrganizationConnectionRequestContent request) { @@ -177,16 +190,20 @@ public CompletableFuture<a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture> add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("enabled_connections") - .build(); + .addPathSegments("enabled_connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> get( String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -346,7 +367,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture> delete(String id, String connectionId) { return delete(id, connectionId, null); @@ -354,19 +375,23 @@ public CompletableFuture> delete(String id, Stri /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture> delete( String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -439,6 +464,18 @@ public CompletableFuture> update( + String id, String connectionId, RequestOptions requestOptions) { + return update( + id, + connectionId, + UpdateOrganizationConnectionRequestContent.builder().build(), + requestOptions); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ @@ -455,13 +492,17 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -470,7 +511,7 @@ public CompletableFutureInvite Organization Members. */ public CompletableFuture>> list(String id) { return list(id, ListOrganizationInvitationsRequestParameters.builder().build()); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationInvitationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture>> list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -64,7 +72,7 @@ public CompletableFutureInvite Organization Members. */ public CompletableFuture>> list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -90,6 +98,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -184,7 +197,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> create( String id, CreateOrganizationInvitationRequestContent request) { @@ -192,16 +205,20 @@ public CompletableFutureInvite Organization Members. */ public CompletableFuture> create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("invitations") - .build(); + .addPathSegments("invitations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -210,7 +227,7 @@ public CompletableFuture> get( + String id, String invitationId, RequestOptions requestOptions) { + return get( + id, + invitationId, + GetOrganizationInvitationRequestParameters.builder().build(), + requestOptions); + } + public CompletableFuture> get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return get(id, invitationId, request, null); @@ -314,6 +340,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -392,15 +423,19 @@ public CompletableFuture> delete(String id, Stri public CompletableFuture> delete( String id, String invitationId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("invitations") - .addPathSegment(invitationId) - .build(); + .addPathSegment(invitationId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java index da8efd52..5a0793f0 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java @@ -49,22 +49,22 @@ public AsyncRawMembersClient(ClientOptions clientOptions) { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture>> list(String id) { return list(id, ListOrganizationMembersRequestParameters.builder().build()); @@ -73,22 +73,47 @@ public CompletableFuture<ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationMembersRequestParameters.builder().build(), requestOptions); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture>> list( String id, ListOrganizationMembersRequestParameters request) { @@ -98,22 +123,22 @@ public CompletableFuture<ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture>> list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -135,6 +160,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -222,8 +252,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture> create( String id, CreateOrganizationMemberRequestContent request) { @@ -231,17 +261,21 @@ public CompletableFuture> create( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture> create( String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -250,7 +284,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -320,12 +354,16 @@ public CompletableFuture> delete( public CompletableFuture> delete( String id, DeleteOrganizationMembersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -334,7 +372,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java index 00c485c1..d8466111 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java @@ -32,6 +32,10 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + public SyncPagingIterable list( String id, ListOrganizationClientGrantsRequestParameters request) { return this.rawClient.list(id, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java index 9b96fa06..294ac013 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve list of all organization discovery domains associated with the specified organization. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -116,14 +123,22 @@ public void delete(String id, String discoveryDomainId, RequestOptions requestOp } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public UpdateOrganizationDiscoveryDomainResponseContent update(String id, String discoveryDomainId) { return this.rawClient.update(id, discoveryDomainId).body(); } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public UpdateOrganizationDiscoveryDomainResponseContent update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return this.rawClient.update(id, discoveryDomainId, requestOptions).body(); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public UpdateOrganizationDiscoveryDomainResponseContent update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -131,7 +146,7 @@ public UpdateOrganizationDiscoveryDomainResponseContent update( } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public UpdateOrganizationDiscoveryDomainResponseContent update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java index cf3da245..c56a76b6 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java @@ -38,6 +38,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -56,7 +63,7 @@ public SyncPagingIterable list( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public AddOrganizationConnectionResponseContent add(String id, AddOrganizationConnectionRequestContent request) { return this.rawClient.add(id, request).body(); @@ -64,7 +71,7 @@ public AddOrganizationConnectionResponseContent add(String id, AddOrganizationCo /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public AddOrganizationConnectionResponseContent add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { @@ -87,7 +94,7 @@ public GetOrganizationConnectionResponseContent get(String id, String connection /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public void delete(String id, String connectionId) { this.rawClient.delete(id, connectionId).body(); @@ -95,7 +102,7 @@ public void delete(String id, String connectionId) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public void delete(String id, String connectionId, RequestOptions requestOptions) { this.rawClient.delete(id, connectionId, requestOptions).body(); @@ -108,6 +115,14 @@ public UpdateOrganizationConnectionResponseContent update(String id, String conn return this.rawClient.update(id, connectionId).body(); } + /** + * Modify the details of a specific connection currently enabled for an Organization. + */ + public UpdateOrganizationConnectionResponseContent update( + String id, String connectionId, RequestOptions requestOptions) { + return this.rawClient.update(id, connectionId, requestOptions).body(); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java index 9f2280f6..65aaa7ad 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java @@ -31,14 +31,21 @@ public RawInvitationsClient withRawResponse() { } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public SyncPagingIterable list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -46,7 +53,7 @@ public SyncPagingIterable list( } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public SyncPagingIterable list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -54,7 +61,7 @@ public SyncPagingIterable list( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CreateOrganizationInvitationResponseContent create( String id, CreateOrganizationInvitationRequestContent request) { @@ -62,7 +69,7 @@ public CreateOrganizationInvitationResponseContent create( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CreateOrganizationInvitationResponseContent create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { @@ -73,6 +80,10 @@ public GetOrganizationInvitationResponseContent get(String id, String invitation return this.rawClient.get(id, invitationId).body(); } + public GetOrganizationInvitationResponseContent get(String id, String invitationId, RequestOptions requestOptions) { + return this.rawClient.get(id, invitationId, requestOptions).body(); + } + public GetOrganizationInvitationResponseContent get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return this.rawClient.get(id, invitationId, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java index ec7fc62c..eec6a004 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java @@ -37,22 +37,22 @@ public RawMembersClient withRawResponse() { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -61,22 +61,46 @@ public SyncPagingIterable list(String id) { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public SyncPagingIterable list(String id, ListOrganizationMembersRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -85,22 +109,22 @@ public SyncPagingIterable list(String id, ListOrganizationMe /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public SyncPagingIterable list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -108,16 +132,16 @@ public SyncPagingIterable list( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public void create(String id, CreateOrganizationMemberRequestContent request) { this.rawClient.create(id, request).body(); } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public void create(String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { this.rawClient.create(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java index 74a99a44..0566aa02 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java @@ -46,6 +46,11 @@ public ManagementApiHttpResponse> li return list(id, ListOrganizationClientGrantsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationClientGrantsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String id, ListOrganizationClientGrantsRequestParameters request) { return list(id, request, null); @@ -75,6 +80,11 @@ public ManagementApiHttpResponse> li QueryStringMapper.addQueryParameter( httpUrl, "grant_ids", request.getGrantIds().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -140,12 +150,16 @@ public ManagementApiHttpResponse create( String id, AssociateOrganizationClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -154,7 +168,7 @@ public ManagementApiHttpResponse delete(String id, String grantId) { } public ManagementApiHttpResponse delete(String id, String grantId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("client-grants") - .addPathSegment(grantId) - .build(); + .addPathSegment(grantId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java index dfa84af8..c10b3aad 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java @@ -54,6 +54,15 @@ public ManagementApiHttpResponse id, ListOrganizationDiscoveryDomainsRequestParameters.builder().build()); } + /** + * Retrieve list of all organization discovery domains associated with the specified organization. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list( + id, ListOrganizationDiscoveryDomainsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -77,6 +86,11 @@ public ManagementApiHttpResponse httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -149,12 +163,16 @@ public ManagementApiHttpResponse create( String id, CreateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("discovery-domains") - .build(); + .addPathSegments("discovery-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -163,7 +181,7 @@ public ManagementApiHttpResponse getByName( String id, String discoveryDomain, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains/name") - .addPathSegment(discoveryDomain) - .build(); + .addPathSegment(discoveryDomain); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -295,15 +317,19 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse get( String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -361,15 +387,19 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI * Remove a discovery domain from an organization. This action cannot be undone. */ public ManagementApiHttpResponse delete(String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -411,7 +441,7 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public ManagementApiHttpResponse update( String id, String discoveryDomainId) { @@ -422,7 +452,19 @@ public ManagementApiHttpResponsestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public ManagementApiHttpResponse update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return update( + id, + discoveryDomainId, + UpdateOrganizationDiscoveryDomainRequestContent.builder().build(), + requestOptions); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public ManagementApiHttpResponse update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -430,20 +472,24 @@ public ManagementApiHttpResponsestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public ManagementApiHttpResponse update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -452,7 +498,7 @@ public ManagementApiHttpResponse> lis return list(id, ListOrganizationConnectionsRequestParameters.builder().build()); } + /** + * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationConnectionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -73,6 +81,11 @@ public ManagementApiHttpResponse> lis httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -133,7 +146,7 @@ public ManagementApiHttpResponse> lis /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public ManagementApiHttpResponse add( String id, AddOrganizationConnectionRequestContent request) { @@ -142,16 +155,20 @@ public ManagementApiHttpResponse add( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public ManagementApiHttpResponse add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("enabled_connections") - .build(); + .addPathSegments("enabled_connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +177,7 @@ public ManagementApiHttpResponse add( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -217,15 +234,19 @@ public ManagementApiHttpResponse get(S */ public ManagementApiHttpResponse get( String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -268,7 +289,7 @@ public ManagementApiHttpResponse get( /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public ManagementApiHttpResponse delete(String id, String connectionId) { return delete(id, connectionId, null); @@ -276,18 +297,22 @@ public ManagementApiHttpResponse delete(String id, String connectionId) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public ManagementApiHttpResponse delete(String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -339,6 +364,18 @@ public ManagementApiHttpResponse up UpdateOrganizationConnectionRequestContent.builder().build()); } + /** + * Modify the details of a specific connection currently enabled for an Organization. + */ + public ManagementApiHttpResponse update( + String id, String connectionId, RequestOptions requestOptions) { + return update( + id, + connectionId, + UpdateOrganizationConnectionRequestContent.builder().build(), + requestOptions); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ @@ -355,13 +392,17 @@ public ManagementApiHttpResponse up String connectionId, UpdateOrganizationConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -370,7 +411,7 @@ public ManagementApiHttpResponse up throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java index 5d198944..f61b48ec 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java @@ -44,14 +44,22 @@ public RawInvitationsClient(ClientOptions clientOptions) { } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse> list(String id) { return list(id, ListOrganizationInvitationsRequestParameters.builder().build()); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationInvitationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse> list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -59,7 +67,7 @@ public ManagementApiHttpResponse> lis } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse> list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +93,11 @@ public ManagementApiHttpResponse> lis QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -147,7 +160,7 @@ public ManagementApiHttpResponse> lis } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse create( String id, CreateOrganizationInvitationRequestContent request) { @@ -155,16 +168,20 @@ public ManagementApiHttpResponse cr } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("invitations") - .build(); + .addPathSegments("invitations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -173,7 +190,7 @@ public ManagementApiHttpResponse cr throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -228,6 +245,15 @@ public ManagementApiHttpResponse get(S GetOrganizationInvitationRequestParameters.builder().build()); } + public ManagementApiHttpResponse get( + String id, String invitationId, RequestOptions requestOptions) { + return get( + id, + invitationId, + GetOrganizationInvitationRequestParameters.builder().build(), + requestOptions); + } + public ManagementApiHttpResponse get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return get(id, invitationId, request, null); @@ -252,6 +278,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -305,15 +336,19 @@ public ManagementApiHttpResponse delete(String id, String invitationId) { } public ManagementApiHttpResponse delete(String id, String invitationId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("invitations") - .addPathSegment(invitationId) - .build(); + .addPathSegment(invitationId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java index 9cdd816c..73772dc4 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java @@ -44,22 +44,22 @@ public RawMembersClient(ClientOptions clientOptions) { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListOrganizationMembersRequestParameters.builder().build()); @@ -68,22 +68,47 @@ public ManagementApiHttpResponse> list(St /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationMembersRequestParameters.builder().build(), requestOptions); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public ManagementApiHttpResponse> list( String id, ListOrganizationMembersRequestParameters request) { @@ -93,22 +118,22 @@ public ManagementApiHttpResponse> list( /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public ManagementApiHttpResponse> list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -130,6 +155,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -187,25 +217,29 @@ public ManagementApiHttpResponse> list( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public ManagementApiHttpResponse create(String id, CreateOrganizationMemberRequestContent request) { return create(id, request, null); } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public ManagementApiHttpResponse create( String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -214,7 +248,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -262,12 +296,16 @@ public ManagementApiHttpResponse delete(String id, DeleteOrganizationMembe public ManagementApiHttpResponse delete( String id, DeleteOrganizationMembersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -276,7 +314,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java index 83a6c6bc..85c1b743 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java @@ -57,6 +57,19 @@ public CompletableFuture>> li ListOrganizationMemberRolesRequestParameters.builder().build()); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public CompletableFuture>> list( + String id, String userId, RequestOptions requestOptions) { + return list( + id, + userId, + ListOrganizationMemberRolesRequestParameters.builder().build(), + requestOptions); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -87,6 +100,11 @@ public CompletableFuture>> li httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,7 +192,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture> assign( @@ -183,7 +201,7 @@ public CompletableFuture> assign( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture> assign( @@ -191,14 +209,18 @@ public CompletableFuture> assign( String userId, AssignOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -207,7 +229,7 @@ public CompletableFuture> assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -276,7 +298,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture> delete( @@ -285,7 +307,7 @@ public CompletableFuture> delete( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture> delete( @@ -293,14 +315,18 @@ public CompletableFuture> delete( String userId, DeleteOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -309,7 +335,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java index c04b4ad9..a7a22e10 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java @@ -37,6 +37,14 @@ public CompletableFuture> list(String id, String userId return this.rawClient.list(id, userId).thenApply(response -> response.body()); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public CompletableFuture> list(String id, String userId, RequestOptions requestOptions) { + return this.rawClient.list(id, userId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -59,7 +67,7 @@ public CompletableFuture> list( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture assign( @@ -68,7 +76,7 @@ public CompletableFuture assign( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture assign( @@ -80,7 +88,7 @@ public CompletableFuture assign( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture delete( @@ -89,7 +97,7 @@ public CompletableFuture delete( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture delete( diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java index f1624d5e..70d50296 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java @@ -52,6 +52,19 @@ public ManagementApiHttpResponse> list(String id, Strin ListOrganizationMemberRolesRequestParameters.builder().build()); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public ManagementApiHttpResponse> list( + String id, String userId, RequestOptions requestOptions) { + return list( + id, + userId, + ListOrganizationMemberRolesRequestParameters.builder().build(), + requestOptions); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -82,6 +95,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -140,7 +158,7 @@ public ManagementApiHttpResponse> list( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public ManagementApiHttpResponse assign( @@ -149,7 +167,7 @@ public ManagementApiHttpResponse assign( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public ManagementApiHttpResponse assign( @@ -157,14 +175,18 @@ public ManagementApiHttpResponse assign( String userId, AssignOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -173,7 +195,7 @@ public ManagementApiHttpResponse assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -219,7 +241,7 @@ public ManagementApiHttpResponse assign( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public ManagementApiHttpResponse delete( @@ -228,7 +250,7 @@ public ManagementApiHttpResponse delete( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public ManagementApiHttpResponse delete( @@ -236,14 +258,18 @@ public ManagementApiHttpResponse delete( String userId, DeleteOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -252,7 +278,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java index 7dfd2bb1..2511b8e8 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java @@ -36,6 +36,14 @@ public SyncPagingIterable list(String id, String userId) { return this.rawClient.list(id, userId).body(); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public SyncPagingIterable list(String id, String userId, RequestOptions requestOptions) { + return this.rawClient.list(id, userId, requestOptions).body(); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -58,7 +66,7 @@ public SyncPagingIterable list( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public void assign(String id, String userId, AssignOrganizationMemberRolesRequestContent request) { @@ -66,7 +74,7 @@ public void assign(String id, String userId, AssignOrganizationMemberRolesReques } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public void assign( @@ -78,7 +86,7 @@ public void assign( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public void delete(String id, String userId, DeleteOrganizationMemberRolesRequestContent request) { @@ -86,7 +94,7 @@ public void delete(String id, String userId, DeleteOrganizationMemberRolesReques } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public void delete( diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java index 69687c67..5f335791 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllRoles(List roles) { public AssignOrganizationMemberRolesRequestContent build() { return new AssignOrganizationMemberRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java index cdf4036f..47bbee41 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllRoles(List roles) { public DeleteOrganizationMemberRolesRequestContent build() { return new DeleteOrganizationMemberRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java index 91ca62ef..8ac7f18d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListOrganizationMemberRolesRequestParameters build() { return new ListOrganizationMemberRolesRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java index 01aa3b99..2fa7a9dc 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java @@ -121,6 +121,10 @@ public interface ConnectionIdStage { public interface _FinalStage { AddOrganizationConnectionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.

    */ @@ -244,5 +248,17 @@ public AddOrganizationConnectionRequestContent build() { return new AddOrganizationConnectionRequestContent( connectionId, assignMembershipOnLogin, isSignupEnabled, showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java index 2a371722..008e5fd2 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java @@ -77,6 +77,10 @@ public interface GrantIdStage { public interface _FinalStage { AssociateOrganizationClientGrantRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage grantId(@NotNull String grantId) { public AssociateOrganizationClientGrantRequestContent build() { return new AssociateOrganizationClientGrantRequestContent(grantId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java index 98670b64..24739546 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java @@ -106,6 +106,10 @@ public interface DomainStage { public interface _FinalStage { CreateOrganizationDiscoveryDomainRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage status(Optional status); _FinalStage status(OrganizationDiscoveryDomainStatus status); @@ -189,5 +193,17 @@ public CreateOrganizationDiscoveryDomainRequestContent build() { return new CreateOrganizationDiscoveryDomainRequestContent( domain, status, useForOrganizationDiscovery, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java index e1fc23bc..2fa99448 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java @@ -194,6 +194,10 @@ public interface ClientIdStage { public interface _FinalStage { CreateOrganizationInvitationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The id of the connection to force invitee to authenticate with.

    */ @@ -416,5 +420,17 @@ public CreateOrganizationInvitationRequestContent build() { sendInvitationEmail, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java index 2fc0bfa7..d3b8cf94 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllMembers(List members) { public CreateOrganizationMemberRequestContent build() { return new CreateOrganizationMemberRequestContent(members, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java index 107e0da2..d09cea35 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllMembers(List members) { public DeleteOrganizationMembersRequestContent build() { return new DeleteOrganizationMembersRequestContent(members, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java index 3fa65613..55e2b1aa 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java @@ -192,5 +192,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetOrganizationInvitationRequestParameters build() { return new GetOrganizationInvitationRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java index f7e4ccae..2aac0340 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java @@ -58,7 +58,7 @@ private ListOrganizationClientGrantsRequestParameters( } /** - * @return Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../client-grants?grant_ids=id1&grant_ids=id2</i> + * @return Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).e.g. ../client-grants?grant_ids=id1&grant_ids=id2 */ @JsonIgnore public Optional> getGrantIds() { @@ -202,7 +202,7 @@ public Builder from(ListOrganizationClientGrantsRequestParameters other) { } /** - *

    Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../client-grants?grant_ids=id1&grant_ids=id2</i>

    + *

    Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).e.g. ../client-grants?grant_ids=id1&grant_ids=id2

    */ @JsonSetter(value = "grant_ids", nulls = Nulls.SKIP) public Builder grantIds(@Nullable Optional> grantIds) { @@ -405,5 +405,15 @@ public ListOrganizationClientGrantsRequestParameters build() { return new ListOrganizationClientGrantsRequestParameters( grantIds, audience, clientId, page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java index 1f5f6812..046afc7c 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListOrganizationConnectionsRequestParameters build() { return new ListOrganizationConnectionsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java index 7ebb5edb..9082576b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListOrganizationDiscoveryDomainsRequestParameters build() { return new ListOrganizationDiscoveryDomainsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java index 456c405d..8114e3f1 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java @@ -407,5 +407,15 @@ public ListOrganizationInvitationsRequestParameters build() { return new ListOrganizationInvitationsRequestParameters( page, perPage, includeTotals, fields, includeFields, sort, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java index 4c9a985a..f1d9566c 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java @@ -305,5 +305,15 @@ public ListOrganizationMembersRequestParameters build() { return new ListOrganizationMembersRequestParameters( from, take, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java index ee5ef19d..616d78b2 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java @@ -161,5 +161,15 @@ public UpdateOrganizationConnectionRequestContent build() { return new UpdateOrganizationConnectionRequestContent( assignMembershipOnLogin, isSignupEnabled, showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java index 794cd4e1..be16ff0d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java @@ -125,5 +125,15 @@ public UpdateOrganizationDiscoveryDomainRequestContent build() { return new UpdateOrganizationDiscoveryDomainRequestContent( status, useForOrganizationDiscovery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java index ca0c1277..37ca4bfb 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java @@ -53,15 +53,19 @@ public CompletableFuture>> get( */ public CompletableFuture>> get( PromptGroupNameEnum prompt, PromptLanguageEnum language, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -147,13 +151,17 @@ public CompletableFuture> set( PromptLanguageEnum language, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -162,7 +170,7 @@ public CompletableFuture> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java index 5767e8a1..a9736236 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java @@ -51,14 +51,18 @@ public CompletableFuture>> get(Par */ public CompletableFuture>> get( PartialGroupsEnum prompt, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -141,12 +145,16 @@ public CompletableFuture> set( */ public CompletableFuture> set( PartialGroupsEnum prompt, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -155,7 +163,7 @@ public CompletableFuture> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java index d2e26664..b0727307 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java @@ -59,6 +59,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListAculsRequestParameters.builder().build(), requestOptions); + } + /** * Get render setting configurations for all screens. */ @@ -100,6 +108,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -192,7 +205,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> bulkUpdate( BulkUpdateAculRequestContent request) { @@ -200,14 +213,18 @@ public CompletableFutureconfiguring render settings for advanced customization. */ public CompletableFuture> bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts/rendering") - .build(); + .addPathSegments("prompts/rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -216,7 +233,7 @@ public CompletableFuture> get( */ public CompletableFuture> get( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -384,7 +405,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { @@ -392,7 +413,15 @@ public CompletableFuture> u } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public CompletableFuture> update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return update(prompt, screen, UpdateAculRequestContent.builder().build(), requestOptions); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -400,21 +429,25 @@ public CompletableFuture> u } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -423,7 +456,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java index 6079315d..0fdf5cf0 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java @@ -41,6 +41,13 @@ public CompletableFuture> list( return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Get render setting configurations for all screens. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Get render setting configurations for all screens. */ @@ -58,14 +65,14 @@ public CompletableFuture> list( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture bulkUpdate(BulkUpdateAculRequestContent request) { return this.rawClient.bulkUpdate(request).thenApply(response -> response.body()); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { @@ -88,14 +95,22 @@ public CompletableFuture get( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture update(PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { return this.rawClient.update(prompt, screen).thenApply(response -> response.body()); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public CompletableFuture update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return this.rawClient.update(prompt, screen, requestOptions).thenApply(response -> response.body()); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -103,7 +118,7 @@ public CompletableFuture update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture update( PromptGroupNameEnum prompt, diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java index d177e3c6..3faaa185 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java @@ -48,15 +48,19 @@ public ManagementApiHttpResponse> get(PromptGroupNameEnum pr */ public ManagementApiHttpResponse> get( PromptGroupNameEnum prompt, PromptLanguageEnum language, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -119,13 +123,17 @@ public ManagementApiHttpResponse set( PromptLanguageEnum language, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -134,7 +142,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java index 2d11561c..a085a1fe 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java @@ -46,14 +46,18 @@ public ManagementApiHttpResponse> get(PartialGroupsEnum prom * Get template partials for a prompt */ public ManagementApiHttpResponse> get(PartialGroupsEnum prompt, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -112,12 +116,16 @@ public ManagementApiHttpResponse set(PartialGroupsEnum prompt, Map set( PartialGroupsEnum prompt, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -126,7 +134,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java index c4b922f6..f4b7cb4b 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java @@ -54,6 +54,14 @@ public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListAculsRequestParameters.builder().build(), requestOptions); + } + /** * Get render setting configurations for all screens. */ @@ -95,6 +103,11 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,21 +168,25 @@ public ManagementApiHttpResponseconfiguring render settings for advanced customization. */ public ManagementApiHttpResponse bulkUpdate(BulkUpdateAculRequestContent request) { return bulkUpdate(request, null); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts/rendering") - .build(); + .addPathSegments("prompts/rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -178,7 +195,7 @@ public ManagementApiHttpResponse bulkUpdate( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -238,16 +255,20 @@ public ManagementApiHttpResponse get( */ public ManagementApiHttpResponse get( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -297,7 +318,7 @@ public ManagementApiHttpResponse get( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { @@ -305,7 +326,15 @@ public ManagementApiHttpResponse update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public ManagementApiHttpResponse update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return update(prompt, screen, UpdateAculRequestContent.builder().build(), requestOptions); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -313,21 +342,25 @@ public ManagementApiHttpResponse update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -336,7 +369,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java index 0833006c..a819e40f 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Get render setting configurations for all screens. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Get render setting configurations for all screens. */ @@ -56,14 +63,14 @@ public SyncPagingIterable list( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public BulkUpdateAculResponseContent bulkUpdate(BulkUpdateAculRequestContent request) { return this.rawClient.bulkUpdate(request).body(); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public BulkUpdateAculResponseContent bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { @@ -86,14 +93,22 @@ public GetAculResponseContent get( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public UpdateAculResponseContent update(PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { return this.rawClient.update(prompt, screen).body(); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public UpdateAculResponseContent update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return this.rawClient.update(prompt, screen, requestOptions).body(); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public UpdateAculResponseContent update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -101,7 +116,7 @@ public UpdateAculResponseContent update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public UpdateAculResponseContent update( PromptGroupNameEnum prompt, diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java b/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java index f23bb371..fbe3c68d 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java @@ -103,5 +103,15 @@ public Builder addAllConfigs(List configs) { public BulkUpdateAculRequestContent build() { return new BulkUpdateAculRequestContent(configs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java index 3bcc187a..e44975cc 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java @@ -543,5 +543,15 @@ public ListAculsRequestParameters build() { renderingMode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java index 2e69170a..81134190 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java @@ -342,5 +342,15 @@ public UpdateAculRequestContent build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java index 797e4d1d..3855eaa4 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -135,10 +139,14 @@ public CompletableFuture> update( UpdateRiskAssessmentsSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +155,7 @@ public CompletableFuture get( * Gets the tenant settings for risk assessments */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -108,10 +112,14 @@ public ManagementApiHttpResponse u */ public ManagementApiHttpResponse update( UpdateRiskAssessmentsSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -120,7 +128,7 @@ public ManagementApiHttpResponse u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java index 0d031ad3..4036e953 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -135,10 +139,14 @@ public CompletableFuture> update( UpdateRiskAssessmentsSettingsNewDeviceRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +155,7 @@ public CompletableFuture get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -109,10 +113,14 @@ public ManagementApiHttpResponse update( UpdateRiskAssessmentsSettingsNewDeviceRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -121,7 +129,7 @@ public ManagementApiHttpResponse additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage rememberFor(int rememberFor) { public UpdateRiskAssessmentsSettingsNewDeviceRequestContent build() { return new UpdateRiskAssessmentsSettingsNewDeviceRequestContent(rememberFor, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java index 4a2aa240..bc134074 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java @@ -76,6 +76,10 @@ public interface EnabledStage { public interface _FinalStage { UpdateRiskAssessmentsSettingsRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage enabled(boolean enabled) { public UpdateRiskAssessmentsSettingsRequestContent build() { return new UpdateRiskAssessmentsSettingsRequestContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java index 4c9bbab9..8d9f39b9 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java @@ -36,6 +36,14 @@ public CompletableFuture> list(St return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -53,14 +61,14 @@ public CompletableFuture> list( } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture add(String id, AddRolePermissionsRequestContent request) { return this.rawClient.add(id, request).thenApply(response -> response.body()); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture add( String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { @@ -68,14 +76,14 @@ public CompletableFuture add( } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture delete(String id, DeleteRolePermissionsRequestContent request) { return this.rawClient.delete(id, request).thenApply(response -> response.body()); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture delete( String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java index f3c28c49..685f92da 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java @@ -54,6 +54,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListRolePermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -77,6 +85,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -170,23 +183,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture> add(String id, AddRolePermissionsRequestContent request) { return add(id, request, null); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture> add( String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> add( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -259,7 +276,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture> delete( String id, DeleteRolePermissionsRequestContent request) { @@ -267,16 +284,20 @@ public CompletableFuture> delete( } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture> delete( String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -285,7 +306,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java index b8332b3d..a6d626ef 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java @@ -47,40 +47,61 @@ public AsyncRawUsersClient(ClientOptions clientOptions) { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture>> list(String id) { return list(id, ListRoleUsersRequestParameters.builder().build()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListRoleUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture>> list( String id, ListRoleUsersRequestParameters request) { @@ -88,20 +109,20 @@ public CompletableFuture> } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture>> list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -115,6 +136,11 @@ public CompletableFuture> httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -203,25 +229,29 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture> assign(String id, AssignRoleUsersRequestContent request) { return assign(id, request, null); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture> assign( String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -230,7 +260,7 @@ public CompletableFuture> assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java index 4e55dcd9..fd83ef32 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java @@ -29,60 +29,80 @@ public AsyncRawUsersClient withRawResponse() { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list(String id, ListRoleUsersRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -90,16 +110,16 @@ public CompletableFuture> list( } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture assign(String id, AssignRoleUsersRequestContent request) { return this.rawClient.assign(id, request).thenApply(response -> response.body()); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture assign( String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java index 760e9b77..d779758e 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java @@ -35,6 +35,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -52,28 +59,28 @@ public SyncPagingIterable list( } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public void add(String id, AddRolePermissionsRequestContent request) { this.rawClient.add(id, request).body(); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public void add(String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { this.rawClient.add(id, request, requestOptions).body(); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public void delete(String id, DeleteRolePermissionsRequestContent request) { this.rawClient.delete(id, request).body(); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public void delete(String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { this.rawClient.delete(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java index 575516b6..ec809990 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java @@ -48,6 +48,14 @@ public ManagementApiHttpResponse> return list(id, ListRolePermissionsRequestParameters.builder().build()); } + /** + * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListRolePermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -71,6 +79,11 @@ public ManagementApiHttpResponse> QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -131,23 +144,27 @@ public ManagementApiHttpResponse> } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public ManagementApiHttpResponse add(String id, AddRolePermissionsRequestContent request) { return add(id, request, null); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public ManagementApiHttpResponse add( String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +173,7 @@ public ManagementApiHttpResponse add( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -199,23 +216,27 @@ public ManagementApiHttpResponse add( } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public ManagementApiHttpResponse delete(String id, DeleteRolePermissionsRequestContent request) { return delete(id, request, null); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public ManagementApiHttpResponse delete( String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -224,7 +245,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java index df0d0176..7e830143 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java @@ -42,40 +42,60 @@ public RawUsersClient(ClientOptions clientOptions) { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListRoleUsersRequestParameters.builder().build()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListRoleUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public ManagementApiHttpResponse> list( String id, ListRoleUsersRequestParameters request) { @@ -83,20 +103,20 @@ public ManagementApiHttpResponse> list( } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public ManagementApiHttpResponse> list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -110,6 +130,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -168,25 +193,29 @@ public ManagementApiHttpResponse> list( } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public ManagementApiHttpResponse assign(String id, AssignRoleUsersRequestContent request) { return assign(id, request, null); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public ManagementApiHttpResponse assign( String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +224,7 @@ public ManagementApiHttpResponse assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java index ef6849e8..f7a2823b 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java @@ -28,60 +28,80 @@ public RawUsersClient withRawResponse() { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(String id, ListRoleUsersRequestParameters request) { return this.rawClient.list(id, request).body(); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -89,16 +109,16 @@ public SyncPagingIterable list( } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public void assign(String id, AssignRoleUsersRequestContent request) { this.rawClient.assign(id, request).body(); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public void assign(String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { this.rawClient.assign(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java index f8856de9..fcc633ce 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java @@ -110,5 +110,15 @@ public Builder addAllPermissions(List permissions) { public AddRolePermissionsRequestContent build() { return new AddRolePermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java index c91daef1..851861f2 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java @@ -108,5 +108,15 @@ public Builder addAllUsers(List users) { public AssignRoleUsersRequestContent build() { return new AssignRoleUsersRequestContent(users, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java index c611cacf..a78badc0 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllPermissions(List permissions) { public DeleteRolePermissionsRequestContent build() { return new DeleteRolePermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java index 0f063537..a0302240 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListRolePermissionsRequestParameters build() { return new ListRolePermissionsRequestParameters(perPage, page, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java index 15b28d60..58aecfb6 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListRoleUsersRequestParameters build() { return new ListRoleUsersRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java index 445774c6..84346eba 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java @@ -55,16 +55,20 @@ public CompletableFuture>> list( SelfServiceProfileCustomTextLanguageEnum language, SelfServiceProfileCustomTextPageEnum page, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -149,14 +153,18 @@ public CompletableFuture>> set( SelfServiceProfileCustomTextPageEnum page, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -165,7 +173,7 @@ public CompletableFuture>> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java index fbcaf4f4..4b3cf93c 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java @@ -46,6 +46,15 @@ public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create( + id, CreateSelfServiceProfileSsoTicketRequestContent.builder().build(), requestOptions); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ @@ -59,12 +68,16 @@ public CompletableFuture> create( String id, CreateSelfServiceProfileSsoTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) - .addPathSegments("sso-ticket") - .build(); + .addPathSegments("sso-ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -73,7 +86,7 @@ public CompletableFuture> revoke(String profileI */ public CompletableFuture> revoke( String profileId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(profileId) .addPathSegments("sso-ticket") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java index ddcac596..9be8e44f 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java @@ -33,6 +33,14 @@ public CompletableFuture creat return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. + */ + public CompletableFuture create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java index 72dd8edb..6568413d 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java @@ -51,16 +51,20 @@ public ManagementApiHttpResponse> list( SelfServiceProfileCustomTextLanguageEnum language, SelfServiceProfileCustomTextPageEnum page, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,14 +128,18 @@ public ManagementApiHttpResponse> set( SelfServiceProfileCustomTextPageEnum page, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +148,7 @@ public ManagementApiHttpResponse> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java index 0d5cbed7..6dec38a8 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java @@ -41,6 +41,15 @@ public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create( + id, CreateSelfServiceProfileSsoTicketRequestContent.builder().build(), requestOptions); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ @@ -54,12 +63,16 @@ public ManagementApiHttpResponse create( String id, CreateSelfServiceProfileSsoTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) - .addPathSegments("sso-ticket") - .build(); + .addPathSegments("sso-ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -68,7 +81,7 @@ public ManagementApiHttpResponse revoke(String profileId, String id) { * Clients should treat these 202 responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. */ public ManagementApiHttpResponse revoke(String profileId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(profileId) .addPathSegments("sso-ticket") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java index d6dabe9a..c3bd7ec2 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java @@ -32,6 +32,13 @@ public CreateSelfServiceProfileSsoTicketResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. + */ + public CreateSelfServiceProfileSsoTicketResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java index a948402c..ce579995 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java @@ -316,5 +316,15 @@ public CreateSelfServiceProfileSsoTicketRequestContent build() { useForOrganizationDiscovery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java index 8a743067..bf7ba835 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java @@ -47,6 +47,14 @@ public CompletableFuture> get( + RequestOptions requestOptions) { + return get(GetTenantSettingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -71,6 +79,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -145,6 +158,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateTenantSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update settings for a tenant. */ @@ -158,10 +179,14 @@ public CompletableFuture> update( UpdateTenantSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tenants/settings") - .build(); + .addPathSegments("tenants/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -170,7 +195,7 @@ public CompletableFuture get() { return this.rawClient.get().thenApply(response -> response.body()); } + /** + * Retrieve tenant settings. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -57,6 +64,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update settings for a tenant. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update settings for a tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java index 14304f90..8731df6b 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java @@ -43,6 +43,13 @@ public ManagementApiHttpResponse get() { return get(GetTenantSettingsRequestParameters.builder().build()); } + /** + * Retrieve tenant settings. A list of fields to include or exclude may also be specified. + */ + public ManagementApiHttpResponse get(RequestOptions requestOptions) { + return get(GetTenantSettingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -66,6 +73,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -117,6 +129,13 @@ public ManagementApiHttpResponse update() { return update(UpdateTenantSettingsRequestContent.builder().build()); } + /** + * Update settings for a tenant. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateTenantSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update settings for a tenant. */ @@ -130,10 +149,14 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( UpdateTenantSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tenants/settings") - .build(); + .addPathSegments("tenants/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -142,7 +165,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java index fe89bda7..e8c3060a 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java @@ -34,6 +34,13 @@ public GetTenantSettingsResponseContent get() { return this.rawClient.get().body(); } + /** + * Retrieve tenant settings. A list of fields to include or exclude may also be specified. + */ + public GetTenantSettingsResponseContent get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).body(); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -56,6 +63,13 @@ public UpdateTenantSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update settings for a tenant. + */ + public UpdateTenantSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update settings for a tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java index d4967a56..47312ecd 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java @@ -192,5 +192,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetTenantSettingsRequestParameters build() { return new GetTenantSettingsRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java index 173cc06b..c5df1218 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java @@ -1531,5 +1531,15 @@ public UpdateTenantSettingsRequestContent build() { phoneConsolidatedExperience, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Action.java b/src/main/java/com/auth0/client/mgmt/types/Action.java index 0cb6f0fc..74832066 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Action.java +++ b/src/main/java/com/auth0/client/mgmt/types/Action.java @@ -598,5 +598,15 @@ public Action build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBase.java b/src/main/java/com/auth0/client/mgmt/types/ActionBase.java index 5a4f5c3e..af1bfccf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBase.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBase.java @@ -253,5 +253,15 @@ public ActionBase build() { return new ActionBase( id, name, supportedTriggers, allChangesDeployed, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java b/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java index 54cde00d..6f2dae6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java @@ -238,5 +238,15 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public ActionBinding build() { return new ActionBinding(id, triggerId, displayName, action, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java b/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java index 3be4a031..5ae48d72 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java @@ -120,5 +120,15 @@ public Builder value(String value) { public ActionBindingRef build() { return new ActionBindingRef(type, value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java b/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java index 530a2801..3349d1f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java @@ -100,6 +100,10 @@ public interface RefStage { public interface _FinalStage { ActionBindingWithRef build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The name of the binding.

    */ @@ -187,5 +191,17 @@ public _FinalStage displayName(Optional displayName) { public ActionBindingWithRef build() { return new ActionBindingWithRef(ref, displayName, secrets, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java b/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java index c3056498..e98aca30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java @@ -572,5 +572,15 @@ public ActionDeployedVersion build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionError.java b/src/main/java/com/auth0/client/mgmt/types/ActionError.java index 490a8520..0b6e8f9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionError.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionError.java @@ -136,5 +136,15 @@ public Builder url(String url) { public ActionError build() { return new ActionError(id, msg, url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java b/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java index a7e149c1..b914726e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java @@ -184,5 +184,15 @@ public Builder endedAt(OffsetDateTime endedAt) { public ActionExecutionResult build() { return new ActionExecutionResult(actionName, error, startedAt, endedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java index 1ede7678..e7d3b4ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java @@ -227,5 +227,15 @@ public ActionModuleAction build() { supportedTriggers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java index 27e89b89..43661a58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java @@ -126,5 +126,15 @@ public Builder version(String version) { public ActionModuleDependency build() { return new ActionModuleDependency(name, version, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java index 75708a39..3a515f44 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java @@ -94,6 +94,10 @@ public interface VersionStage { public interface _FinalStage { ActionModuleDependencyRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage version(@NotNull String version) { public ActionModuleDependencyRequest build() { return new ActionModuleDependencyRequest(name, version, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java index f36626cc..aee4efd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java @@ -392,5 +392,15 @@ public ActionModuleListItem build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java index 6f12cdfd..558dd1de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java @@ -190,5 +190,15 @@ public ActionModuleReference build() { return new ActionModuleReference( moduleId, moduleName, moduleVersionId, moduleVersionNumber, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java index ee4bdcc2..05e63b17 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java @@ -127,5 +127,15 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public ActionModuleSecret build() { return new ActionModuleSecret(name, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java index fa9fa350..cbb2155b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java @@ -94,6 +94,10 @@ public interface ValueStage { public interface _FinalStage { ActionModuleSecretRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage value(@NotNull String value) { public ActionModuleSecretRequest build() { return new ActionModuleSecretRequest(name, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java index e66ba404..2d4f8cd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java @@ -283,5 +283,15 @@ public ActionModuleVersion build() { return new ActionModuleVersion( id, moduleId, versionNumber, code, secrets, dependencies, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java index 127927ec..6c20def5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java @@ -252,5 +252,15 @@ public ActionModuleVersionReference build() { return new ActionModuleVersionReference( id, versionNumber, code, dependencies, secrets, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java index 0e2f8be7..f6a71766 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java @@ -126,5 +126,15 @@ public Builder value(String value) { public ActionSecretRequest build() { return new ActionSecretRequest(name, value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java b/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java index a9041145..c02ba253 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java @@ -127,5 +127,15 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public ActionSecretResponse build() { return new ActionSecretResponse(name, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java index f904a339..91b8c316 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java @@ -158,6 +158,10 @@ public interface IdStage { public interface _FinalStage { ActionTrigger build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The version of a trigger. v1, v2, etc.

    */ @@ -363,5 +367,17 @@ public ActionTrigger build() { bindingPolicy, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java index bb8740e7..d95b111a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java @@ -88,6 +88,10 @@ public interface VersionStage { public interface _FinalStage { ActionTriggerCompatibleTrigger build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -131,5 +135,17 @@ public _FinalStage version(@NotNull String version) { public ActionTriggerCompatibleTrigger build() { return new ActionTriggerCompatibleTrigger(id, version, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java b/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java index 8301f2ec..2f31626f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java @@ -572,5 +572,15 @@ public ActionVersion build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java b/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java index d61c7e1b..52c2a92a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java @@ -157,5 +157,15 @@ public Builder registryUrl(String registryUrl) { public ActionVersionDependency build() { return new ActionVersionDependency(name, version, registryUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java index ba38c87d..1c87c51f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { AculClientFilterById build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public AculClientFilterById build() { return new AculClientFilterById(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java index cdd5fec2..da345b73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java @@ -101,5 +101,15 @@ public Builder metadata(String key, Object value) { public AculClientFilterByMetadata build() { return new AculClientFilterByMetadata(metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java index 76a012d0..6a073600 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java @@ -200,6 +200,10 @@ public interface ScreenStage { public interface _FinalStage { AculConfigsItem build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage renderingMode(Optional renderingMode); _FinalStage renderingMode(AculRenderingModeEnum renderingMode); @@ -491,5 +495,17 @@ public AculConfigsItem build() { filters, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java index 25f84044..24a4981a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { AculDomainFilterById build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public AculDomainFilterById build() { return new AculDomainFilterById(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java index dc6d6b57..501147c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java @@ -101,5 +101,15 @@ public Builder metadata(String key, Object value) { public AculDomainFilterByMetadata build() { return new AculDomainFilterByMetadata(metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculFilters.java b/src/main/java/com/auth0/client/mgmt/types/AculFilters.java index 17818338..52634da0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculFilters.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculFilters.java @@ -184,5 +184,15 @@ public Builder domains(List domains) { public AculFilters build() { return new AculFilters(matchType, clients, organizations, domains, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java b/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java index f7f55a36..efa3491c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java @@ -145,5 +145,15 @@ public Builder content(String content) { public AculHeadTag build() { return new AculHeadTag(tag, attributes, content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java index 8463d030..99799dbb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { AculOrganizationFilterById build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public AculOrganizationFilterById build() { return new AculOrganizationFilterById(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java index 9f03d014..5c52af95 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java @@ -101,5 +101,15 @@ public Builder metadata(String key, Object value) { public AculOrganizationFilterByMetadata build() { return new AculOrganizationFilterByMetadata(metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java index b8d28eec..bcddc1c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java @@ -225,5 +225,15 @@ public AddOrganizationConnectionResponseContent build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java index 170d20fb..3fbbf931 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java @@ -247,5 +247,15 @@ public AssociateOrganizationClientGrantResponseContent build() { return new AssociateOrganizationClientGrantResponseContent( id, clientId, audience, scope, organizationUsage, allowAnyOrganization, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java index e8b8ceee..f1eb1275 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java @@ -191,5 +191,15 @@ public AttackProtectionCaptchaArkoseResponseContent build() { return new AttackProtectionCaptchaArkoseResponseContent( siteKey, failOpen, clientSubdomain, verifySubdomain, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java index 040e9536..d3a28c44 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java @@ -76,6 +76,10 @@ public interface FailOpenStage { public interface _FinalStage { AttackProtectionCaptchaAuthChallengeRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage failOpen(boolean failOpen) { public AttackProtectionCaptchaAuthChallengeRequest build() { return new AttackProtectionCaptchaAuthChallengeRequest(failOpen, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java index cfd7fc99..d3615a3b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java @@ -99,5 +99,15 @@ public Builder failOpen(Boolean failOpen) { public AttackProtectionCaptchaAuthChallengeResponseContent build() { return new AttackProtectionCaptchaAuthChallengeResponseContent(failOpen, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java index 1fe824f4..32d64b8f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java @@ -99,5 +99,15 @@ public Builder siteKey(String siteKey) { public AttackProtectionCaptchaFriendlyCaptchaResponseContent build() { return new AttackProtectionCaptchaFriendlyCaptchaResponseContent(siteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java index e77765a2..c6a01c48 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java @@ -99,5 +99,15 @@ public Builder siteKey(String siteKey) { public AttackProtectionCaptchaHcaptchaResponseContent build() { return new AttackProtectionCaptchaHcaptchaResponseContent(siteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java index 0c0c6461..3b694f3c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java @@ -128,5 +128,15 @@ public AttackProtectionCaptchaRecaptchaEnterpriseResponseContent build() { return new AttackProtectionCaptchaRecaptchaEnterpriseResponseContent( siteKey, projectId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java index 6291153d..1e47846b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java @@ -99,5 +99,15 @@ public Builder siteKey(String siteKey) { public AttackProtectionCaptchaRecaptchaV2ResponseContent build() { return new AttackProtectionCaptchaRecaptchaV2ResponseContent(siteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java index 5de31a94..1182984b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java @@ -141,6 +141,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaArkose build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The subdomain used for client requests to the Arkose captcha provider.

    */ @@ -279,5 +283,17 @@ public AttackProtectionUpdateCaptchaArkose build() { return new AttackProtectionUpdateCaptchaArkose( siteKey, secret, clientSubdomain, verifySubdomain, failOpen, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java index f3d19474..7d7fd077 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java @@ -96,6 +96,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaFriendlyCaptcha build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage secret(@NotNull String secret) { public AttackProtectionUpdateCaptchaFriendlyCaptcha build() { return new AttackProtectionUpdateCaptchaFriendlyCaptcha(siteKey, secret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java index dbfc6c94..6861b8d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java @@ -96,6 +96,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaHcaptcha build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage secret(@NotNull String secret) { public AttackProtectionUpdateCaptchaHcaptcha build() { return new AttackProtectionUpdateCaptchaHcaptcha(siteKey, secret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java index b58eb78a..474b142c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java @@ -114,6 +114,10 @@ public interface ProjectIdStage { public interface _FinalStage { AttackProtectionUpdateCaptchaRecaptchaEnterprise build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -178,5 +182,17 @@ public AttackProtectionUpdateCaptchaRecaptchaEnterprise build() { return new AttackProtectionUpdateCaptchaRecaptchaEnterprise( siteKey, apiKey, projectId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java index 3fcc8518..d440676b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java @@ -96,6 +96,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaRecaptchaV2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage secret(@NotNull String secret) { public AttackProtectionUpdateCaptchaRecaptchaV2 build() { return new AttackProtectionUpdateCaptchaRecaptchaV2(siteKey, secret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java index b8c8027b..405c383c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java @@ -122,5 +122,15 @@ public Builder pageBackground(BrandingPageBackground pageBackground) { public BrandingColors build() { return new BrandingColors(primary, pageBackground, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java b/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java index 4aae99c0..2158c0d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java @@ -97,5 +97,15 @@ public Builder url(String url) { public BrandingFont build() { return new BrandingFont(url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java index ef00067f..9fc5795e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java @@ -235,6 +235,10 @@ public interface WidgetCornerRadiusStage { public interface _FinalStage { BrandingThemeBorders build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -398,5 +402,17 @@ public BrandingThemeBorders build() { widgetCornerRadius, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java index 141a2ce3..5c0435ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java @@ -450,6 +450,10 @@ public interface WidgetBorderStage { public interface _FinalStage { BrandingThemeColors build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Base Focus Color

    */ @@ -859,5 +863,17 @@ public BrandingThemeColors build() { widgetBorder, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java index 8f8c99d0..7c99b687 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontBodyText build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontBodyText build() { return new BrandingThemeFontBodyText(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java index 71b1c235..48db81fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontButtonsText build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontButtonsText build() { return new BrandingThemeFontButtonsText(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java index b2939990..7e806c53 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontInputLabels build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontInputLabels build() { return new BrandingThemeFontInputLabels(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java index 2d0535c8..3e627361 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontLinks build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontLinks build() { return new BrandingThemeFontLinks(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java index a665fc7d..f1542e13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontSubtitle build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontSubtitle build() { return new BrandingThemeFontSubtitle(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java index 3e39a7c7..095582ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontTitle build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontTitle build() { return new BrandingThemeFontTitle(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java index 67554667..d04e9b32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java @@ -205,6 +205,10 @@ public interface TitleStage { public interface _FinalStage { BrandingThemeFonts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -343,5 +347,17 @@ public BrandingThemeFonts build() { title, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java index d3f95c3c..3571687a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java @@ -112,6 +112,10 @@ public interface PageLayoutStage { public interface _FinalStage { BrandingThemePageBackground build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public BrandingThemePageBackground build() { return new BrandingThemePageBackground( backgroundColor, backgroundImageUrl, pageLayout, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java index 199927ea..3a8f1562 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java @@ -141,6 +141,10 @@ public interface SocialButtonsLayoutStage { public interface _FinalStage { BrandingThemeWidget build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -230,5 +234,17 @@ public BrandingThemeWidget build() { return new BrandingThemeWidget( headerTextAlignment, logoHeight, logoPosition, logoUrl, socialButtonsLayout, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java index e53ada44..65934b64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java @@ -34,7 +34,7 @@ private BreachedPasswordDetectionPreChangePasswordStage( /** * @return Action to take when a breached password is detected during a password reset. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -87,7 +87,7 @@ public Builder from(BreachedPasswordDetectionPreChangePasswordStage other) { /** *

    Action to take when a breached password is detected during a password reset. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -103,5 +103,15 @@ public Builder shields(List additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java index 27b56006..30c1c041 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java @@ -34,7 +34,7 @@ private BreachedPasswordDetectionPreUserRegistrationStage( /** * @return Action to take when a breached password is detected during a signup. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -87,7 +87,7 @@ public Builder from(BreachedPasswordDetectionPreUserRegistrationStage other) { /** *

    Action to take when a breached password is detected during a signup. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -103,5 +103,15 @@ public Builder shields(List additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java index c8fae44d..4e8cf8ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java @@ -118,5 +118,15 @@ public Builder preChangePassword(BreachedPasswordDetectionPreChangePasswordStage public BreachedPasswordDetectionStage build() { return new BreachedPasswordDetectionStage(preUserRegistration, preChangePassword, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java index 26fc7d81..82511857 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java @@ -102,5 +102,15 @@ public Builder addAllConfigs(List configs) { public BulkUpdateAculResponseContent build() { return new BulkUpdateAculResponseContent(configs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java b/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java index a69434be..9f8a2a65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java @@ -114,6 +114,10 @@ public interface CredentialTypeStage { public interface _FinalStage { CertificateSubjectDnCredential build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -231,5 +235,17 @@ public _FinalStage name(Optional name) { public CertificateSubjectDnCredential build() { return new CertificateSubjectDnCredential(credentialType, name, subjectDn, pem, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java index d210bbfd..e2290af6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java @@ -108,6 +108,10 @@ public interface ProviderStage { public interface _FinalStage { ChangePasswordTicketIdentity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    connection_id of the identity.

    */ @@ -180,5 +184,17 @@ public _FinalStage connectionId(Optional connectionId) { public ChangePasswordTicketIdentity build() { return new ChangePasswordTicketIdentity(userId, provider, connectionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java index bb8767ea..02f1573d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java @@ -84,7 +84,7 @@ public Optional getUserId() { } /** - * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger. + * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. */ @JsonProperty("client_id") public Optional getClientId() { @@ -263,7 +263,7 @@ public Builder userId(String userId) { } /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    */ @JsonSetter(value = "client_id", nulls = Nulls.SKIP) public Builder clientId(Optional clientId) { @@ -385,5 +385,15 @@ public ChangePasswordTicketRequestContent build() { identity, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java index c9075bfd..cff27402 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java @@ -77,6 +77,10 @@ public interface TicketStage { public interface _FinalStage { ChangePasswordTicketResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage ticket(@NotNull String ticket) { public ChangePasswordTicketResponseContent build() { return new ChangePasswordTicketResponseContent(ticket, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Client.java b/src/main/java/com/auth0/client/mgmt/types/Client.java index 4c1bf94b..6ef26506 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Client.java +++ b/src/main/java/com/auth0/client/mgmt/types/Client.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public Client build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java index 828f875f..2c6389e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java @@ -159,5 +159,15 @@ public Builder lifetimeInSeconds(Integer lifetimeInSeconds) { public ClientAddonAws build() { return new ClientAddonAws(principal, role, lifetimeInSeconds, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java index c194cdf5..1a9a3909 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java @@ -486,5 +486,15 @@ public ClientAddonAzureBlob build() { containerList, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java index c1cc286e..603a1b7d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java @@ -219,5 +219,15 @@ public Builder expiration(Integer expiration) { public ClientAddonAzureSb build() { return new ClientAddonAzureSb(namespace, sasKeyName, sasKey, entityPath, expiration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java index d014bbe1..e3cfeff4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java @@ -97,5 +97,15 @@ public Builder domain(String domain) { public ClientAddonEchoSign build() { return new ClientAddonEchoSign(domain, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java index 9388bb1b..80452ae8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java @@ -97,5 +97,15 @@ public Builder domain(String domain) { public ClientAddonEgnyte build() { return new ClientAddonEgnyte(domain, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java index 12fa19d6..064b9ecd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java @@ -220,5 +220,15 @@ public ClientAddonFirebase build() { return new ClientAddonFirebase( secret, privateKeyId, privateKey, clientEmail, lifetimeInSeconds, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java index afd68b39..cf3a8a9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java @@ -147,6 +147,10 @@ public interface PrivateKeyStage { public interface _FinalStage { ClientAddonLayer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the property used as the unique user id in Layer. If not specified user_id is used.

    */ @@ -269,5 +273,17 @@ public _FinalStage principal(Optional principal) { public ClientAddonLayer build() { return new ClientAddonLayer(providerId, keyId, privateKey, principal, expiration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java index b611cd19..7cc03c9c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java @@ -76,6 +76,10 @@ public interface UrlStage { public interface _FinalStage { ClientAddonMscrm build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage url(@NotNull String url) { public ClientAddonMscrm build() { return new ClientAddonMscrm(url, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java index 0d939500..e8142b03 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java @@ -97,5 +97,15 @@ public Builder account(String account) { public ClientAddonNewRelic build() { return new ClientAddonNewRelic(account, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java index 5e4fdd6e..73f2c4c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java @@ -55,5 +55,15 @@ public Builder from(ClientAddonOag other) { public ClientAddonOag build() { return new ClientAddonOag(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java index e8808141..6a1da51f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java @@ -126,5 +126,15 @@ public Builder connection(String connection) { public ClientAddonOffice365 build() { return new ClientAddonOffice365(domain, connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java index 64ed5c72..9e3b5c23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java @@ -76,6 +76,10 @@ public interface UrlStage { public interface _FinalStage { ClientAddonRms build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage url(@NotNull String url) { public ClientAddonRms build() { return new ClientAddonRms(url, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java index 466a4b58..0b3804c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java @@ -97,5 +97,15 @@ public Builder entityId(String entityId) { public ClientAddonSalesforce build() { return new ClientAddonSalesforce(entityId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java index ad2557ff..94a5d7bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java @@ -190,5 +190,15 @@ public ClientAddonSalesforceApi build() { return new ClientAddonSalesforceApi( clientid, principal, communityName, communityUrlSection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java index 1f331b50..e8952731 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java @@ -190,5 +190,15 @@ public ClientAddonSalesforceSandboxApi build() { return new ClientAddonSalesforceSandboxApi( clientid, principal, communityName, communityUrlSection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java index 819d7512..ab65c312 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java @@ -487,5 +487,15 @@ public ClientAddonSaml build() { authnContextClassRef, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java index 22970031..751e807f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java @@ -262,5 +262,15 @@ public ClientAddonSapapi build() { nameIdentifierFormat, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java index 074a04fe..b2945b41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java @@ -126,5 +126,15 @@ public Builder baseUrl(String baseUrl) { public ClientAddonSentry build() { return new ClientAddonSentry(orgSlug, baseUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java index 72123441..6d2b75b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java @@ -122,5 +122,15 @@ public Builder externalUrl(ClientAddonSharePointExternalUrl externalUrl) { public ClientAddonSharePoint build() { return new ClientAddonSharePoint(url, externalUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java index 281cdedb..90b340c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java @@ -76,6 +76,10 @@ public interface TeamStage { public interface _FinalStage { ClientAddonSlack build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage team(@NotNull String team) { public ClientAddonSlack build() { return new ClientAddonSlack(team, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java index 006352f1..9a8e8325 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java @@ -97,5 +97,15 @@ public Builder acsurl(String acsurl) { public ClientAddonSpringCm build() { return new ClientAddonSpringCm(acsurl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java index 41c6a40e..3420f8d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java @@ -126,5 +126,15 @@ public Builder version(String version) { public ClientAddonSsoIntegration build() { return new ClientAddonSsoIntegration(name, version, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java index f42f26c3..5e6ab479 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java @@ -97,5 +97,15 @@ public Builder masterkey(String masterkey) { public ClientAddonWams build() { return new ClientAddonWams(masterkey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java index 820a210e..44c3296a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java @@ -97,5 +97,15 @@ public Builder accountName(String accountName) { public ClientAddonZendesk build() { return new ClientAddonZendesk(accountName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java index b7227fb2..a1fb6f10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java @@ -97,5 +97,15 @@ public Builder account(String account) { public ClientAddonZoom build() { return new ClientAddonZoom(account, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java index ef0a3f3c..7a3782a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java @@ -883,5 +883,15 @@ public ClientAddons build() { oag, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java index f7e74c5a..20e8f9f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java @@ -144,5 +144,15 @@ public ClientAuthenticationMethod build() { return new ClientAuthenticationMethod( privateKeyJwt, tlsClientAuth, selfSignedTlsClientAuth, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java index 2b6facd1..2d0462f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientAuthenticationMethodPrivateKeyJwt build() { return new ClientAuthenticationMethodPrivateKeyJwt(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java index a62ae699..ea8cb7b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientAuthenticationMethodSelfSignedTlsClientAuth build() { return new ClientAuthenticationMethodSelfSignedTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java index ad24c5dc..34f2ebde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientAuthenticationMethodTlsClientAuth build() { return new ClientAuthenticationMethodTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java index cc952dc1..1cdf0b02 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java @@ -145,5 +145,15 @@ public ClientCreateAuthenticationMethod build() { return new ClientCreateAuthenticationMethod( privateKeyJwt, tlsClientAuth, selfSignedTlsClientAuth, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java index c06ecd0e..f88ad948 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientCreateAuthenticationMethodPrivateKeyJwt build() { return new ClientCreateAuthenticationMethodPrivateKeyJwt(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java index 01c25037..b83b46f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credential public ClientCreateAuthenticationMethodTlsClientAuth build() { return new ClientCreateAuthenticationMethodTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java b/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java index 342b3fcf..f55207a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java @@ -379,5 +379,15 @@ public ClientCredential build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java index e1dd5e2b..5cd722c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java @@ -94,6 +94,10 @@ public interface OrganizationIdStage { public interface _FinalStage { ClientDefaultOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The default Organization usage

    */ @@ -173,5 +177,17 @@ public _FinalStage flows(List flows) { public ClientDefaultOrganization build() { return new ClientDefaultOrganization(organizationId, flows, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java index e50045c5..d4ba1229 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java @@ -157,5 +157,15 @@ public Builder subject(String subject) { public ClientEncryptionKey build() { return new ClientEncryptionKey(pub, cert, subject, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java index 5c51f955..c0ae611b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java @@ -379,5 +379,15 @@ public ClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java index 8659fa47..1ffbf0b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java @@ -177,5 +177,15 @@ public Builder alg(SigningAlgorithmEnum alg) { public ClientJwtConfiguration build() { return new ClientJwtConfiguration(lifetimeInSeconds, secretEncoded, scopes, alg, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java b/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java index a6221157..8602cd6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java @@ -116,5 +116,15 @@ public Builder ios(ClientMobileiOs ios) { public ClientMobile build() { return new ClientMobile(android, ios, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java b/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java index 94c21d35..5802f5b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java @@ -130,5 +130,15 @@ public Builder sha256CertFingerprints(List sha256CertFingerprints) { public ClientMobileAndroid build() { return new ClientMobileAndroid(appPackageName, sha256CertFingerprints, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java b/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java index f8de2b1f..877de03f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java @@ -126,5 +126,15 @@ public Builder appBundleIdentifier(String appBundleIdentifier) { public ClientMobileiOs build() { return new ClientMobileiOs(teamId, appBundleIdentifier, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java index 1b2dcd6d..fca322c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java @@ -119,5 +119,15 @@ public Builder selectedInitiators(List additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java index 4e15d301..de68d9b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java @@ -99,5 +99,15 @@ public Builder include(Boolean include) { public ClientOidcBackchannelLogoutSessionMetadata build() { return new ClientOidcBackchannelLogoutSessionMetadata(include, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java index 634e3fdf..06e91e64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java @@ -195,5 +195,15 @@ public ClientOidcBackchannelLogoutSettings build() { backchannelLogoutSessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java index 817423d6..b89d96d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java @@ -176,6 +176,10 @@ public interface ExpirationTypeStage { public interface _FinalStage { ClientRefreshTokenConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Period in seconds where the previous refresh token can be exchanged without triggering breach detection

    */ @@ -402,5 +406,17 @@ public ClientRefreshTokenConfiguration build() { policies, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java index 99063695..27f41220 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java @@ -91,6 +91,10 @@ public interface AudienceStage { public interface _FinalStage { ClientRefreshTokenPolicy build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The resource server permissions granted under the Multi Resource Refresh Token Policy, defining the context in which an access token can be used

    */ @@ -170,5 +174,17 @@ public _FinalStage scope(List scope) { public ClientRefreshTokenPolicy build() { return new ClientRefreshTokenPolicy(audience, scope, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java index bde9fc31..5d09f787 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java @@ -261,5 +261,15 @@ public ClientSessionTransferConfiguration build() { enforceOnlineRefreshTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java index 4a7ed6e2..c641d708 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java @@ -124,5 +124,15 @@ public Builder credentials(List credentials) { public ClientSignedRequestObjectWithCredentialId build() { return new ClientSignedRequestObjectWithCredentialId(required, credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java index d95362a4..9ed529a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java @@ -124,5 +124,15 @@ public Builder credentials(List credentials) { public ClientSignedRequestObjectWithPublicKey build() { return new ClientSignedRequestObjectWithPublicKey(required, credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java index 7b78cfcf..a023736e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java @@ -157,5 +157,15 @@ public Builder subject(String subject) { public ClientSigningKey build() { return new ClientSigningKey(pkcs7, cert, subject, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java index 81d6cb9b..40f28ee0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java @@ -100,5 +100,15 @@ public Builder allowAnyProfileOfType(List allowAnyP public ClientTokenExchangeConfiguration build() { return new ClientTokenExchangeConfiguration(allowAnyProfileOfType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java index 092762e4..19bf98bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java @@ -101,5 +101,15 @@ public Builder allowAnyProfileOfType(List allowAnyP public ClientTokenExchangeConfigurationOrNull build() { return new ClientTokenExchangeConfigurationOrNull(allowAnyProfileOfType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeTypeEnum.java index 214095ec..98ae7303 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeTypeEnum.java @@ -10,6 +10,9 @@ public final class ClientTokenExchangeTypeEnum { public static final ClientTokenExchangeTypeEnum CUSTOM_AUTHENTICATION = new ClientTokenExchangeTypeEnum(Value.CUSTOM_AUTHENTICATION, "custom_authentication"); + public static final ClientTokenExchangeTypeEnum ON_BEHALF_OF_TOKEN_EXCHANGE = + new ClientTokenExchangeTypeEnum(Value.ON_BEHALF_OF_TOKEN_EXCHANGE, "on_behalf_of_token_exchange"); + private final Value value; private final String string; @@ -45,6 +48,8 @@ public T visit(Visitor visitor) { switch (value) { case CUSTOM_AUTHENTICATION: return visitor.visitCustomAuthentication(); + case ON_BEHALF_OF_TOKEN_EXCHANGE: + return visitor.visitOnBehalfOfTokenExchange(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -56,6 +61,8 @@ public static ClientTokenExchangeTypeEnum valueOf(String value) { switch (value) { case "custom_authentication": return CUSTOM_AUTHENTICATION; + case "on_behalf_of_token_exchange": + return ON_BEHALF_OF_TOKEN_EXCHANGE; default: return new ClientTokenExchangeTypeEnum(Value.UNKNOWN, value); } @@ -64,12 +71,16 @@ public static ClientTokenExchangeTypeEnum valueOf(String value) { public enum Value { CUSTOM_AUTHENTICATION, + ON_BEHALF_OF_TOKEN_EXCHANGE, + UNKNOWN } public interface Visitor { T visitCustomAuthentication(); + T visitOnBehalfOfTokenExchange(); + 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 621f2fb4..3a22c8b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java @@ -211,6 +211,10 @@ public interface CreatedAtStage { public interface _FinalStage { ConnectedAccount build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The scopes granted for this connected account.

    */ @@ -389,5 +393,17 @@ public ConnectedAccount build() { expiresAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java index c3273681..d7ed08f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java @@ -122,5 +122,15 @@ public Builder defaultMethod(DefaultMethodEmailIdentifierEnum defaultMethod) { public ConnectionAttributeIdentifier build() { return new ConnectionAttributeIdentifier(active, defaultMethod, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java index 9b0c0d7d..ab2a42da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java @@ -141,5 +141,15 @@ public Builder userinfoScope(String userinfoScope) { public ConnectionAttributeMapOidc build() { return new ConnectionAttributeMapOidc(attributes, mappingMode, userinfoScope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java index 20f16508..9c2956d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java @@ -141,5 +141,15 @@ public Builder userinfoScope(String userinfoScope) { public ConnectionAttributeMapOkta build() { return new ConnectionAttributeMapOkta(attributes, mappingMode, userinfoScope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java index 7d4ac34b..5a298b1e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java @@ -139,5 +139,15 @@ public Builder username(UsernameAttribute username) { public ConnectionAttributes build() { return new ConnectionAttributes(email, phoneNumber, username, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java index 74b0dbb1..1383713f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java @@ -165,5 +165,15 @@ public Builder phoneOtp(ConnectionPhoneOtpAuthenticationMethod phoneOtp) { public ConnectionAuthenticationMethods build() { return new ConnectionAuthenticationMethods(password, passkey, emailOtp, phoneOtp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java index 780caa1f..c529c36d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java @@ -69,6 +69,10 @@ public interface ActiveStage { public interface _FinalStage { ConnectionAuthenticationPurpose build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -97,5 +101,17 @@ public _FinalStage active(boolean active) { public ConnectionAuthenticationPurpose build() { return new ConnectionAuthenticationPurpose(active, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java index c745a892..1a5ec36d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java @@ -172,5 +172,15 @@ public ConnectionCommon build() { return new ConnectionCommon( displayName, enabledClients, isDomainConnection, metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java index 40dc2a41..f190ba53 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java @@ -82,6 +82,10 @@ public interface ActiveStage { public interface _FinalStage { ConnectionConnectedAccountsPurpose build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage crossAppAccess(Optional crossAppAccess); _FinalStage crossAppAccess(Boolean crossAppAccess); @@ -129,5 +133,17 @@ public _FinalStage crossAppAccess(Optional crossAppAccess) { public ConnectionConnectedAccountsPurpose build() { return new ConnectionConnectedAccountsPurpose(active, crossAppAccess, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java index 50fb17cf..4227dc2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java @@ -82,6 +82,10 @@ public interface ActiveStage { public interface _FinalStage { ConnectionConnectedAccountsPurposeXaa build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage crossAppAccess(Optional crossAppAccess); _FinalStage crossAppAccess(Boolean crossAppAccess); @@ -129,5 +133,17 @@ public _FinalStage crossAppAccess(Optional crossAppAccess) { public ConnectionConnectedAccountsPurposeXaa build() { return new ConnectionConnectedAccountsPurposeXaa(crossAppAccess, active, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java index 65743c84..4a8f2ef5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java @@ -92,5 +92,15 @@ public Builder pkce(ConnectionConnectionSettingsPkceEnum pkce) { public ConnectionConnectionSettings build() { return new ConnectionConnectionSettings(pkce, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java index db2a3e6c..c7713614 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java @@ -304,5 +304,15 @@ public ConnectionCustomScripts build() { changePhoneNumber, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java index ca1faddf..a12820a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java @@ -126,5 +126,15 @@ public Builder key(String key) { public ConnectionDecryptionKeySamlCert build() { return new ConnectionDecryptionKeySamlCert(cert, key, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java new file mode 100644 index 00000000..cb4e688a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class ConnectionDpopSigningAlgEnum { + public static final ConnectionDpopSigningAlgEnum ES256 = new ConnectionDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final ConnectionDpopSigningAlgEnum ED25519 = + new ConnectionDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + private final Value value; + + private final String string; + + ConnectionDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof ConnectionDpopSigningAlgEnum + && this.string.equals(((ConnectionDpopSigningAlgEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ES256: + return visitor.visitEs256(); + case ED25519: + return visitor.visitEd25519(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "ES256": + return ES256; + case "Ed25519": + return ED25519; + default: + return new ConnectionDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java index be0ddbeb..3495a19f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java @@ -171,5 +171,15 @@ public Builder syntax(ConnectionEmailEmailSyntax syntax) { public ConnectionEmailEmail build() { return new ConnectionEmailEmail(body, from, subject, syntax, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java index 2ff774ee..0df3024c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java @@ -99,5 +99,15 @@ public Builder enabled(Boolean enabled) { public ConnectionEmailOtpAuthenticationMethod build() { return new ConnectionEmailOtpAuthenticationMethod(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java index a2c363c1..9cbf21b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java @@ -76,6 +76,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionEnabledClient build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage clientId(@NotNull String clientId) { public ConnectionEnabledClient build() { return new ConnectionEnabledClient(clientId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java index b7d58d32..86129d54 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java @@ -99,5 +99,15 @@ public Builder active(Boolean active) { public ConnectionFederatedConnectionsAccessTokens build() { return new ConnectionFederatedConnectionsAccessTokens(active, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java index bd9961ea..b192408e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java @@ -400,5 +400,15 @@ public ConnectionForList build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java index 918f3e7a..74b13410 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java @@ -120,6 +120,10 @@ public interface ConnectionIdStage { public interface _FinalStage { ConnectionForOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.

    */ @@ -243,5 +247,17 @@ public ConnectionForOrganization build() { return new ConnectionForOrganization( connectionId, assignMembershipOnLogin, showAsButton, isSignupEnabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java index cdde507d..801f9799 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java @@ -147,6 +147,10 @@ public interface SecretStage { public interface _FinalStage { ConnectionGatewayAuthentication build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The subject to be added to the JWT payload.

    */ @@ -270,5 +274,17 @@ public ConnectionGatewayAuthentication build() { return new ConnectionGatewayAuthentication( method, subject, audience, secret, secretBase64Encoded, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java index 8948dfba..58ba3dbe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java @@ -133,6 +133,10 @@ public interface SecretStage { public interface _FinalStage { ConnectionGatewayAuthenticationSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Set to true if the secret is base64-url-encoded

    */ @@ -236,5 +240,17 @@ public ConnectionGatewayAuthenticationSms build() { return new ConnectionGatewayAuthenticationSms( audience, method, secret, secretBase64Encoded, subject, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java index 5a806f42..7752e1ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java @@ -251,6 +251,10 @@ public interface ThumbprintStage { public interface _FinalStage { ConnectionKey build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -561,5 +565,17 @@ public ConnectionKey build() { subjectDn, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java index 5b323914..a491ddfb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java @@ -128,5 +128,15 @@ public Builder returnEnrollSettings(Boolean returnEnrollSettings) { public ConnectionMfa build() { return new ConnectionMfa(active, returnEnrollSettings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java index 5cbb7e82..90f01822 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java @@ -608,5 +608,15 @@ public ConnectionOptionsAd build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java index f5a6c212..f9688f05 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java @@ -501,5 +501,15 @@ public ConnectionOptionsAdfs build() { userIdAttribute, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java index b1f28e71..d41c6df5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java @@ -362,5 +362,15 @@ public ConnectionOptionsAmazon build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java index ade31883..851b2b6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java @@ -277,5 +277,15 @@ public ConnectionOptionsAol build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java index 71f6dd6f..54cc7a05 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java @@ -570,5 +570,15 @@ public ConnectionOptionsApple build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java index b78eb6e8..19b15f41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java @@ -901,5 +901,15 @@ public ConnectionOptionsAuth0 build() { validation, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java index 2b356a55..0e7f8fb6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java @@ -114,5 +114,15 @@ public Builder clientSecret(String clientSecret) { public ConnectionOptionsAuth0Oidc build() { return new ConnectionOptionsAuth0Oidc(clientId, clientSecret, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java index eaee6daa..5c1c553e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java @@ -2182,5 +2182,15 @@ public ConnectionOptionsAzureAd build() { waadProtocol, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java index 8718f893..0885a465 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java @@ -277,5 +277,15 @@ public ConnectionOptionsBaidu build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java index 916730eb..20eaf125 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java @@ -254,5 +254,15 @@ public ConnectionOptionsBitbucket build() { setUserRootAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java index 38e53048..55ea9a80 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java @@ -277,5 +277,15 @@ public ConnectionOptionsBitly build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java index 1af07dd2..68e12d02 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java @@ -277,5 +277,15 @@ public ConnectionOptionsBox build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java index f021d506..51b4de4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java @@ -94,5 +94,15 @@ public Builder nonPersistentAttrs(List nonPersistentAttrs) { public ConnectionOptionsCommon build() { return new ConnectionOptionsCommon(nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java index 50b8d828..46a05563 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -33,10 +33,12 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional connectionSettings; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional> domainAliases; + private final Optional dpopSigningAlg; + + private final OptionalNullable federatedConnectionsAccessTokens; + private final Optional iconUrl; private final OptionalNullable> idTokenSignedResponseAlgs; @@ -73,8 +75,9 @@ private ConnectionOptionsCommonOidc( String clientId, Optional clientSecret, Optional connectionSettings, - OptionalNullable federatedConnectionsAccessTokens, Optional> domainAliases, + Optional dpopSigningAlg, + OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, @@ -94,8 +97,9 @@ private ConnectionOptionsCommonOidc( this.clientId = clientId; this.clientSecret = clientSecret; this.connectionSettings = connectionSettings; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; @@ -137,6 +141,18 @@ public Optional getConnectionSettings() { return connectionSettings; } + @JsonProperty("domain_aliases") + @java.lang.Override + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + @java.lang.Override + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("federated_connections_access_tokens") @java.lang.Override @@ -147,12 +163,6 @@ public OptionalNullable getFederated return federatedConnectionsAccessTokens; } - @JsonProperty("domain_aliases") - @java.lang.Override - public Optional> getDomainAliases() { - return domainAliases; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -300,8 +310,9 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) { && clientId.equals(other.clientId) && clientSecret.equals(other.clientSecret) && connectionSettings.equals(other.connectionSettings) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) @@ -325,8 +336,9 @@ public int hashCode() { this.clientId, this.clientSecret, this.connectionSettings, - this.federatedConnectionsAccessTokens, this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSignedResponseAlgs, this.issuer, @@ -361,6 +373,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsCommonOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); _FinalStage authorizationEndpoint(String authorizationEndpoint); @@ -373,6 +389,14 @@ public interface _FinalStage { _FinalStage connectionSettings(ConnectionConnectionSettings connectionSettings); + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg(Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); + _FinalStage federatedConnectionsAccessTokens( @Nullable OptionalNullable federatedConnectionsAccessTokens); @@ -387,10 +411,6 @@ _FinalStage federatedConnectionsAccessTokens( com.auth0.client.mgmt.core.Nullable federatedConnectionsAccessTokens); - _FinalStage domainAliases(Optional> domainAliases); - - _FinalStage domainAliases(List domainAliases); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -518,11 +538,13 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private Optional> domainAliases = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); + private Optional dpopSigningAlg = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + private Optional connectionSettings = Optional.empty(); private Optional clientSecret = Optional.empty(); @@ -540,8 +562,9 @@ public Builder from(ConnectionOptionsCommonOidc other) { clientId(other.getClientId()); clientSecret(other.getClientSecret()); connectionSettings(other.getConnectionSettings()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); @@ -857,19 +880,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage domainAliases(List domainAliases) { - this.domainAliases = Optional.ofNullable(domainAliases); - return this; - } - - @java.lang.Override - @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) - public _FinalStage domainAliases(Optional> domainAliases) { - this.domainAliases = domainAliases; - return this; - } - @java.lang.Override public _FinalStage federatedConnectionsAccessTokens( com.auth0.client.mgmt.core.Nullable @@ -911,6 +921,32 @@ public _FinalStage federatedConnectionsAccessTokens( return this; } + @java.lang.Override + public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + @java.lang.Override public _FinalStage connectionSettings(ConnectionConnectionSettings connectionSettings) { this.connectionSettings = Optional.ofNullable(connectionSettings); @@ -957,8 +993,9 @@ public ConnectionOptionsCommonOidc build() { clientId, clientSecret, connectionSettings, - federatedConnectionsAccessTokens, domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, iconUrl, idTokenSignedResponseAlgs, issuer, @@ -975,5 +1012,17 @@ public ConnectionOptionsCommonOidc build() { userinfoEndpoint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java index b25819e8..850b831e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java @@ -520,5 +520,15 @@ public ConnectionOptionsCommonSaml build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java index 6e6ace97..f776dd0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java @@ -277,5 +277,15 @@ public ConnectionOptionsDaccount build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java index d9ef5edc..ec359580 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java @@ -277,5 +277,15 @@ public ConnectionOptionsDropbox build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java index ee49cbde..6bfb889e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java @@ -277,5 +277,15 @@ public ConnectionOptionsDwolla build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java index eb400e44..7082b035 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java @@ -158,6 +158,10 @@ public interface NameStage { public interface _FinalStage { ConnectionOptionsEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); _FinalStage nonPersistentAttrs(List nonPersistentAttrs); @@ -298,5 +302,17 @@ public ConnectionOptionsEmail build() { totp, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java index 2d2992be..4fcd77b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java @@ -262,5 +262,15 @@ public ConnectionOptionsEvernote build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java index d9a8b6be..3a4d0144 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java @@ -304,5 +304,15 @@ public ConnectionOptionsExact build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java index cd581604..2367992b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java @@ -1566,5 +1566,15 @@ public ConnectionOptionsFacebook build() { userVideos, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java index aba4fc16..ca55e212 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java @@ -277,5 +277,15 @@ public ConnectionOptionsFitbit build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java index b30caa66..3e35fdfd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java @@ -262,5 +262,15 @@ public ConnectionOptionsFlickr build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java index 53a18344..f27aa903 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java @@ -938,5 +938,15 @@ public ConnectionOptionsGitHub build() { writeRepoHook, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java index eada7fef..a2646f05 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java @@ -383,6 +383,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsGoogleApps build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); _FinalStage nonPersistentAttrs(List nonPersistentAttrs); @@ -1048,5 +1052,17 @@ public ConnectionOptionsGoogleApps build() { upstreamParams, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java index ed9c6811..c7a3f016 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java @@ -2430,5 +2430,15 @@ public ConnectionOptionsGoogleOAuth2 build() { youtubepartner, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java index a3515ba5..8915576e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java @@ -184,5 +184,15 @@ public ConnectionOptionsIdpinitiatedSaml build() { return new ConnectionOptionsIdpinitiatedSaml( clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java index 8d04b9c8..c37aee9b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java @@ -277,5 +277,15 @@ public ConnectionOptionsInstagram build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java index d5d5dfba..be0cd8fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java @@ -362,5 +362,15 @@ public ConnectionOptionsLine build() { profile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java index 5eada7d3..ea623a0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java @@ -399,5 +399,15 @@ public ConnectionOptionsLinkedin build() { profile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java index 4dd9ec88..2b3f7a88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java @@ -277,5 +277,15 @@ public ConnectionOptionsMiicard build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java index 7b8548d4..b4989c71 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java @@ -3,7 +3,9 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -13,26 +15,70 @@ import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionOptionsOAuth1.Builder.class) -public final class ConnectionOptionsOAuth1 { +public final class ConnectionOptionsOAuth1 implements IConnectionOptionsCommon { + private final Optional> nonPersistentAttrs; + + private final Optional accessTokenUrl; + private final Optional clientId; private final Optional clientSecret; + private final Optional requestTokenUrl; + + private final Optional scripts; + + private final Optional signatureMethod; + + private final OptionalNullable>> + upstreamParams; + + private final Optional userAuthorizationUrl; + private final Map additionalProperties; private ConnectionOptionsOAuth1( - Optional clientId, Optional clientSecret, Map additionalProperties) { + Optional> nonPersistentAttrs, + Optional accessTokenUrl, + Optional clientId, + Optional clientSecret, + Optional requestTokenUrl, + Optional scripts, + Optional signatureMethod, + OptionalNullable>> upstreamParams, + Optional userAuthorizationUrl, + Map additionalProperties) { + this.nonPersistentAttrs = nonPersistentAttrs; + this.accessTokenUrl = accessTokenUrl; this.clientId = clientId; this.clientSecret = clientSecret; + this.requestTokenUrl = requestTokenUrl; + this.scripts = scripts; + this.signatureMethod = signatureMethod; + this.upstreamParams = upstreamParams; + this.userAuthorizationUrl = userAuthorizationUrl; this.additionalProperties = additionalProperties; } + @JsonProperty("non_persistent_attrs") + @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("accessTokenURL") + public Optional getAccessTokenUrl() { + return accessTokenUrl; + } + @JsonProperty("client_id") public Optional getClientId() { return clientId; @@ -43,6 +89,42 @@ public Optional getClientSecret() { return clientSecret; } + @JsonProperty("requestTokenURL") + public Optional getRequestTokenUrl() { + return requestTokenUrl; + } + + @JsonProperty("scripts") + public Optional getScripts() { + return scripts; + } + + @JsonProperty("signatureMethod") + public Optional getSignatureMethod() { + return signatureMethod; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("upstream_params") + public OptionalNullable>> getUpstreamParams() { + if (upstreamParams == null) { + return OptionalNullable.absent(); + } + return upstreamParams; + } + + @JsonProperty("userAuthorizationURL") + public Optional getUserAuthorizationUrl() { + return userAuthorizationUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("upstream_params") + private OptionalNullable>> + _getUpstreamParams() { + return upstreamParams; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -55,12 +137,29 @@ public Map getAdditionalProperties() { } private boolean equalTo(ConnectionOptionsOAuth1 other) { - return clientId.equals(other.clientId) && clientSecret.equals(other.clientSecret); + return nonPersistentAttrs.equals(other.nonPersistentAttrs) + && accessTokenUrl.equals(other.accessTokenUrl) + && clientId.equals(other.clientId) + && clientSecret.equals(other.clientSecret) + && requestTokenUrl.equals(other.requestTokenUrl) + && scripts.equals(other.scripts) + && signatureMethod.equals(other.signatureMethod) + && upstreamParams.equals(other.upstreamParams) + && userAuthorizationUrl.equals(other.userAuthorizationUrl); } @java.lang.Override public int hashCode() { - return Objects.hash(this.clientId, this.clientSecret); + return Objects.hash( + this.nonPersistentAttrs, + this.accessTokenUrl, + this.clientId, + this.clientSecret, + this.requestTokenUrl, + this.scripts, + this.signatureMethod, + this.upstreamParams, + this.userAuthorizationUrl); } @java.lang.Override @@ -74,18 +173,62 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional accessTokenUrl = Optional.empty(); + private Optional clientId = Optional.empty(); private Optional clientSecret = Optional.empty(); + private Optional requestTokenUrl = Optional.empty(); + + private Optional scripts = Optional.empty(); + + private Optional signatureMethod = Optional.empty(); + + private OptionalNullable>> upstreamParams = + OptionalNullable.absent(); + + private Optional userAuthorizationUrl = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} public Builder from(ConnectionOptionsOAuth1 other) { + nonPersistentAttrs(other.getNonPersistentAttrs()); + accessTokenUrl(other.getAccessTokenUrl()); clientId(other.getClientId()); clientSecret(other.getClientSecret()); + requestTokenUrl(other.getRequestTokenUrl()); + scripts(other.getScripts()); + signatureMethod(other.getSignatureMethod()); + upstreamParams(other.getUpstreamParams()); + userAuthorizationUrl(other.getUserAuthorizationUrl()); + return this; + } + + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "accessTokenURL", nulls = Nulls.SKIP) + public Builder accessTokenUrl(Optional accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + return this; + } + + public Builder accessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = Optional.ofNullable(accessTokenUrl); return this; } @@ -111,8 +254,111 @@ public Builder clientSecret(String clientSecret) { return this; } + @JsonSetter(value = "requestTokenURL", nulls = Nulls.SKIP) + public Builder requestTokenUrl(Optional requestTokenUrl) { + this.requestTokenUrl = requestTokenUrl; + return this; + } + + public Builder requestTokenUrl(String requestTokenUrl) { + this.requestTokenUrl = Optional.ofNullable(requestTokenUrl); + return this; + } + + @JsonSetter(value = "scripts", nulls = Nulls.SKIP) + public Builder scripts(Optional scripts) { + this.scripts = scripts; + return this; + } + + public Builder scripts(ConnectionScriptsOAuth1 scripts) { + this.scripts = Optional.ofNullable(scripts); + return this; + } + + @JsonSetter(value = "signatureMethod", nulls = Nulls.SKIP) + public Builder signatureMethod(Optional signatureMethod) { + this.signatureMethod = signatureMethod; + return this; + } + + public Builder signatureMethod(ConnectionSignatureMethodOAuth1 signatureMethod) { + this.signatureMethod = Optional.ofNullable(signatureMethod); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams( + @Nullable + OptionalNullable>> + upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams( + Map> upstreamParams) { + this.upstreamParams = OptionalNullable.of(upstreamParams); + return this; + } + + public Builder upstreamParams( + Optional>> upstreamParams) { + if (upstreamParams.isPresent()) { + this.upstreamParams = OptionalNullable.of(upstreamParams.get()); + } else { + this.upstreamParams = OptionalNullable.absent(); + } + return this; + } + + public Builder upstreamParams( + com.auth0.client.mgmt.core.Nullable< + Map>> + upstreamParams) { + if (upstreamParams.isNull()) { + this.upstreamParams = OptionalNullable.ofNull(); + } else if (upstreamParams.isEmpty()) { + this.upstreamParams = OptionalNullable.absent(); + } else { + this.upstreamParams = OptionalNullable.of(upstreamParams.get()); + } + return this; + } + + @JsonSetter(value = "userAuthorizationURL", nulls = Nulls.SKIP) + public Builder userAuthorizationUrl(Optional userAuthorizationUrl) { + this.userAuthorizationUrl = userAuthorizationUrl; + return this; + } + + public Builder userAuthorizationUrl(String userAuthorizationUrl) { + this.userAuthorizationUrl = Optional.ofNullable(userAuthorizationUrl); + return this; + } + public ConnectionOptionsOAuth1 build() { - return new ConnectionOptionsOAuth1(clientId, clientSecret, additionalProperties); + return new ConnectionOptionsOAuth1( + nonPersistentAttrs, + accessTokenUrl, + clientId, + clientSecret, + requestTokenUrl, + scripts, + signatureMethod, + upstreamParams, + userAuthorizationUrl, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java index 22da6834..4fcfe753 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java @@ -262,5 +262,15 @@ public ConnectionOptionsOAuth1Common build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java index 11a71bec..0c087a52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java @@ -570,5 +570,15 @@ public ConnectionOptionsOAuth2 build() { useOauthSpecScope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java index 541d9f7a..f92f74c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java @@ -277,5 +277,15 @@ public ConnectionOptionsOAuth2Common build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java index b6d9bf4e..9c1a23b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java @@ -114,5 +114,15 @@ public Builder clientSecret(String clientSecret) { public ConnectionOptionsOffice365 build() { return new ConnectionOptionsOffice365(clientId, clientSecret, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java index d2cc0001..457cc8d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -33,10 +33,12 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional connectionSettings; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional> domainAliases; + private final Optional dpopSigningAlg; + + private final OptionalNullable federatedConnectionsAccessTokens; + private final Optional iconUrl; private final OptionalNullable> idTokenSignedResponseAlgs; @@ -81,8 +83,9 @@ private ConnectionOptionsOidc( String clientId, Optional clientSecret, Optional connectionSettings, - OptionalNullable federatedConnectionsAccessTokens, Optional> domainAliases, + Optional dpopSigningAlg, + OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, @@ -106,8 +109,9 @@ private ConnectionOptionsOidc( this.clientId = clientId; this.clientSecret = clientSecret; this.connectionSettings = connectionSettings; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; @@ -153,6 +157,18 @@ public Optional getConnectionSettings() { return connectionSettings; } + @JsonProperty("domain_aliases") + @java.lang.Override + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + @java.lang.Override + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("federated_connections_access_tokens") @java.lang.Override @@ -163,12 +179,6 @@ public OptionalNullable getFederated return federatedConnectionsAccessTokens; } - @JsonProperty("domain_aliases") - @java.lang.Override - public Optional> getDomainAliases() { - return domainAliases; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -337,8 +347,9 @@ private boolean equalTo(ConnectionOptionsOidc other) { && clientId.equals(other.clientId) && clientSecret.equals(other.clientSecret) && connectionSettings.equals(other.connectionSettings) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) @@ -366,8 +377,9 @@ public int hashCode() { this.clientId, this.clientSecret, this.connectionSettings, - this.federatedConnectionsAccessTokens, this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSignedResponseAlgs, this.issuer, @@ -406,6 +418,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); _FinalStage authorizationEndpoint(String authorizationEndpoint); @@ -418,6 +434,14 @@ public interface _FinalStage { _FinalStage connectionSettings(ConnectionConnectionSettings connectionSettings); + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg(Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); + _FinalStage federatedConnectionsAccessTokens( @Nullable OptionalNullable federatedConnectionsAccessTokens); @@ -432,10 +456,6 @@ _FinalStage federatedConnectionsAccessTokens( com.auth0.client.mgmt.core.Nullable federatedConnectionsAccessTokens); - _FinalStage domainAliases(Optional> domainAliases); - - _FinalStage domainAliases(List domainAliases); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -587,11 +607,13 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private Optional> domainAliases = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); + private Optional dpopSigningAlg = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + private Optional connectionSettings = Optional.empty(); private Optional clientSecret = Optional.empty(); @@ -609,8 +631,9 @@ public Builder from(ConnectionOptionsOidc other) { clientId(other.getClientId()); clientSecret(other.getClientSecret()); connectionSettings(other.getConnectionSettings()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); @@ -982,19 +1005,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage domainAliases(List domainAliases) { - this.domainAliases = Optional.ofNullable(domainAliases); - return this; - } - - @java.lang.Override - @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) - public _FinalStage domainAliases(Optional> domainAliases) { - this.domainAliases = domainAliases; - return this; - } - @java.lang.Override public _FinalStage federatedConnectionsAccessTokens( com.auth0.client.mgmt.core.Nullable @@ -1036,6 +1046,32 @@ public _FinalStage federatedConnectionsAccessTokens( return this; } + @java.lang.Override + public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + @java.lang.Override public _FinalStage connectionSettings(ConnectionConnectionSettings connectionSettings) { this.connectionSettings = Optional.ofNullable(connectionSettings); @@ -1082,8 +1118,9 @@ public ConnectionOptionsOidc build() { clientId, clientSecret, connectionSettings, - federatedConnectionsAccessTokens, domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, iconUrl, idTokenSignedResponseAlgs, issuer, @@ -1104,5 +1141,17 @@ public ConnectionOptionsOidc build() { type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java index dcd3525f..58ddf0c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java @@ -40,6 +40,8 @@ public final class ConnectionOptionsOidcMetadata { private final Optional> displayValuesSupported; + private final Optional> dpopSigningAlgValuesSupported; + private final Optional endSessionEndpoint; private final Optional> grantTypesSupported; @@ -108,6 +110,7 @@ private ConnectionOptionsOidcMetadata( Optional claimsParameterSupported, Optional> claimsSupported, Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, Optional endSessionEndpoint, Optional> grantTypesSupported, Optional> idTokenEncryptionAlgValuesSupported, @@ -145,6 +148,7 @@ private ConnectionOptionsOidcMetadata( this.claimsParameterSupported = claimsParameterSupported; this.claimsSupported = claimsSupported; this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; this.endSessionEndpoint = endSessionEndpoint; this.grantTypesSupported = grantTypesSupported; this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; @@ -212,6 +216,11 @@ public Optional> getDisplayValuesSupported() { return displayValuesSupported; } + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + @JsonProperty("end_session_endpoint") public Optional getEndSessionEndpoint() { return endSessionEndpoint; @@ -386,6 +395,7 @@ private boolean equalTo(ConnectionOptionsOidcMetadata other) { && claimsParameterSupported.equals(other.claimsParameterSupported) && claimsSupported.equals(other.claimsSupported) && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) && endSessionEndpoint.equals(other.endSessionEndpoint) && grantTypesSupported.equals(other.grantTypesSupported) && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) @@ -427,6 +437,7 @@ public int hashCode() { this.claimsParameterSupported, this.claimsSupported, this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, this.endSessionEndpoint, this.grantTypesSupported, this.idTokenEncryptionAlgValuesSupported, @@ -484,6 +495,10 @@ public interface JwksUriStage { public interface _FinalStage { ConnectionOptionsOidcMetadata build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage acrValuesSupported(Optional> acrValuesSupported); _FinalStage acrValuesSupported(List acrValuesSupported); @@ -508,6 +523,10 @@ public interface _FinalStage { _FinalStage displayValuesSupported(List displayValuesSupported); + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); _FinalStage endSessionEndpoint(String endSessionEndpoint); @@ -689,6 +708,8 @@ public static final class Builder implements AuthorizationEndpointStage, IssuerS private Optional endSessionEndpoint = Optional.empty(); + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + private Optional> displayValuesSupported = Optional.empty(); private Optional> claimsSupported = Optional.empty(); @@ -715,6 +736,7 @@ public Builder from(ConnectionOptionsOidcMetadata other) { claimsParameterSupported(other.getClaimsParameterSupported()); claimsSupported(other.getClaimsSupported()); displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); endSessionEndpoint(other.getEndSessionEndpoint()); grantTypesSupported(other.getGrantTypesSupported()); idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); @@ -1167,6 +1189,19 @@ public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { return this; } + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + @java.lang.Override public _FinalStage displayValuesSupported(List displayValuesSupported) { this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); @@ -1255,6 +1290,7 @@ public ConnectionOptionsOidcMetadata build() { claimsParameterSupported, claimsSupported, displayValuesSupported, + dpopSigningAlgValuesSupported, endSessionEndpoint, grantTypesSupported, idTokenEncryptionAlgValuesSupported, @@ -1286,5 +1322,17 @@ public ConnectionOptionsOidcMetadata build() { userinfoSigningAlgValuesSupported, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java index f772f4de..376926ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -35,10 +35,12 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional connectionSettings; - private final OptionalNullable federatedConnectionsAccessTokens; - private final Optional> domainAliases; + private final Optional dpopSigningAlg; + + private final OptionalNullable federatedConnectionsAccessTokens; + private final Optional iconUrl; private final OptionalNullable> idTokenSignedResponseAlgs; @@ -82,8 +84,9 @@ private ConnectionOptionsOkta( String clientId, Optional clientSecret, Optional connectionSettings, - OptionalNullable federatedConnectionsAccessTokens, Optional> domainAliases, + Optional dpopSigningAlg, + OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, OptionalNullable> idTokenSignedResponseAlgs, Optional issuer, @@ -107,8 +110,9 @@ private ConnectionOptionsOkta( this.clientId = clientId; this.clientSecret = clientSecret; this.connectionSettings = connectionSettings; - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; this.issuer = issuer; @@ -159,6 +163,18 @@ public Optional getConnectionSettings() { return connectionSettings; } + @JsonProperty("domain_aliases") + @java.lang.Override + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + @java.lang.Override + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("federated_connections_access_tokens") @java.lang.Override @@ -169,12 +185,6 @@ public OptionalNullable getFederated return federatedConnectionsAccessTokens; } - @JsonProperty("domain_aliases") - @java.lang.Override - public Optional> getDomainAliases() { - return domainAliases; - } - @JsonProperty("icon_url") @java.lang.Override public Optional getIconUrl() { @@ -338,8 +348,9 @@ private boolean equalTo(ConnectionOptionsOkta other) { && clientId.equals(other.clientId) && clientSecret.equals(other.clientSecret) && connectionSettings.equals(other.connectionSettings) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) && issuer.equals(other.issuer) @@ -367,8 +378,9 @@ public int hashCode() { this.clientId, this.clientSecret, this.connectionSettings, - this.federatedConnectionsAccessTokens, this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSignedResponseAlgs, this.issuer, @@ -406,6 +418,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsOkta build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); _FinalStage nonPersistentAttrs(List nonPersistentAttrs); @@ -422,6 +438,14 @@ public interface _FinalStage { _FinalStage connectionSettings(ConnectionConnectionSettings connectionSettings); + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg(Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); + _FinalStage federatedConnectionsAccessTokens( @Nullable OptionalNullable federatedConnectionsAccessTokens); @@ -436,10 +460,6 @@ _FinalStage federatedConnectionsAccessTokens( com.auth0.client.mgmt.core.Nullable federatedConnectionsAccessTokens); - _FinalStage domainAliases(Optional> domainAliases); - - _FinalStage domainAliases(List domainAliases); - _FinalStage iconUrl(Optional iconUrl); _FinalStage iconUrl(String iconUrl); @@ -585,11 +605,13 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional iconUrl = Optional.empty(); - private Optional> domainAliases = Optional.empty(); - private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); + private Optional dpopSigningAlg = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + private Optional connectionSettings = Optional.empty(); private Optional clientSecret = Optional.empty(); @@ -610,8 +632,9 @@ public Builder from(ConnectionOptionsOkta other) { clientId(other.getClientId()); clientSecret(other.getClientSecret()); connectionSettings(other.getConnectionSettings()); - federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); issuer(other.getIssuer()); @@ -969,19 +992,6 @@ public _FinalStage iconUrl(Optional iconUrl) { return this; } - @java.lang.Override - public _FinalStage domainAliases(List domainAliases) { - this.domainAliases = Optional.ofNullable(domainAliases); - return this; - } - - @java.lang.Override - @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) - public _FinalStage domainAliases(Optional> domainAliases) { - this.domainAliases = domainAliases; - return this; - } - @java.lang.Override public _FinalStage federatedConnectionsAccessTokens( com.auth0.client.mgmt.core.Nullable @@ -1023,6 +1033,32 @@ public _FinalStage federatedConnectionsAccessTokens( return this; } + @java.lang.Override + public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + @java.lang.Override public _FinalStage connectionSettings(ConnectionConnectionSettings connectionSettings) { this.connectionSettings = Optional.ofNullable(connectionSettings); @@ -1083,8 +1119,9 @@ public ConnectionOptionsOkta build() { clientId, clientSecret, connectionSettings, - federatedConnectionsAccessTokens, domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, iconUrl, idTokenSignedResponseAlgs, issuer, @@ -1104,5 +1141,17 @@ public ConnectionOptionsOkta build() { type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java index 44937f7a..dcaab501 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java @@ -356,5 +356,15 @@ public ConnectionOptionsPaypal build() { profile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java index e93fffb1..d23ca387 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java @@ -295,6 +295,10 @@ public interface PingFederateBaseUrlStage { public interface _FinalStage { ConnectionOptionsPingFederate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage cert(Optional cert); _FinalStage cert(String cert); @@ -725,5 +729,17 @@ public ConnectionOptionsPingFederate build() { signingCert, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java index c2b0d70f..afd3cc70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java @@ -277,5 +277,15 @@ public ConnectionOptionsPlanningCenter build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java index 4f6d6a68..aec9b8ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java @@ -277,5 +277,15 @@ public ConnectionOptionsRenren build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java index 5d925c0d..3a591357 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java @@ -337,5 +337,15 @@ public ConnectionOptionsSalesforce build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java index eb176e91..8ad12550 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java @@ -365,5 +365,15 @@ public ConnectionOptionsSalesforceCommunity build() { communityBaseUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java index 5450fc46..25de7198 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java @@ -943,5 +943,15 @@ public ConnectionOptionsSaml build() { userIdAttribute, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java index 5ed1f11d..fa55b3a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java @@ -277,5 +277,15 @@ public ConnectionOptionsSharepoint build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java index 65ed3812..2f118a69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java @@ -277,5 +277,15 @@ public ConnectionOptionsShop build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java index 94692b0c..318b5063 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java @@ -277,5 +277,15 @@ public ConnectionOptionsShopify build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java index baaf180d..da8474ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java @@ -509,5 +509,15 @@ public ConnectionOptionsSms build() { twilioToken, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java index bb529d7d..06d421f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java @@ -277,5 +277,15 @@ public ConnectionOptionsSoundcloud build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java index 2dff3c33..c13a1685 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java @@ -279,5 +279,15 @@ public ConnectionOptionsThirtySevenSignals build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java index ae1903e2..966c5b0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java @@ -452,5 +452,15 @@ public ConnectionOptionsTwitter build() { usersRead, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java index 734ce3bb..f3fd498d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java @@ -277,5 +277,15 @@ public ConnectionOptionsUntappd build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java index bb488e44..4bc05ec1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java @@ -277,5 +277,15 @@ public ConnectionOptionsVkontakte build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java index 98660665..1d841f4d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java @@ -277,5 +277,15 @@ public ConnectionOptionsWeibo build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java index c469f951..752d881b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java @@ -2180,5 +2180,15 @@ public ConnectionOptionsWindowsLive build() { workProfile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java index fe267e8a..61a31db3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java @@ -277,5 +277,15 @@ public ConnectionOptionsWordpress build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java index 2379ac84..28febcd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java @@ -277,5 +277,15 @@ public ConnectionOptionsYahoo build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java index 370a3737..85fc45bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java @@ -277,5 +277,15 @@ public ConnectionOptionsYammer build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java index adb5f64b..9e306229 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java @@ -277,5 +277,15 @@ public ConnectionOptionsYandex build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java index 21fd81bb..e9acf1f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java @@ -98,5 +98,15 @@ public Builder enabled(Boolean enabled) { public ConnectionPasskeyAuthenticationMethod build() { return new ConnectionPasskeyAuthenticationMethod(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java index 11308fbe..880c2c2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java @@ -154,5 +154,15 @@ public ConnectionPasskeyOptions build() { return new ConnectionPasskeyOptions( challengeUi, progressiveEnrollmentEnabled, localEnrollmentEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java index 67a8c5fd..cfe72894 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java @@ -149,5 +149,15 @@ public ConnectionPasswordAuthenticationMethod build() { return new ConnectionPasswordAuthenticationMethod( enabled, apiBehavior, signupBehavior, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java index f2734810..f6f0a580 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java @@ -98,5 +98,15 @@ public Builder minLength(Integer minLength) { public ConnectionPasswordComplexityOptions build() { return new ConnectionPasswordComplexityOptions(minLength, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java index 1abe7480..8d6d2ae1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java @@ -86,6 +86,10 @@ public interface EnableStage { public interface _FinalStage { ConnectionPasswordDictionaryOptions build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Custom Password Dictionary. An array of up to 200 entries.

    */ @@ -143,5 +147,17 @@ public _FinalStage dictionary(Optional> dictionary) { public ConnectionPasswordDictionaryOptions build() { return new ConnectionPasswordDictionaryOptions(enable, dictionary, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java index a5ea8bb0..9d5e2582 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java @@ -81,6 +81,10 @@ public interface EnableStage { public interface _FinalStage { ConnectionPasswordHistoryOptions build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage size(Optional size); _FinalStage size(Integer size); @@ -128,5 +132,17 @@ public _FinalStage size(Optional size) { public ConnectionPasswordHistoryOptions build() { return new ConnectionPasswordHistoryOptions(enable, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java index ea52d475..64687deb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java @@ -70,6 +70,10 @@ public interface EnableStage { public interface _FinalStage { ConnectionPasswordNoPersonalInfoOptions build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage enable(boolean enable) { public ConnectionPasswordNoPersonalInfoOptions build() { return new ConnectionPasswordNoPersonalInfoOptions(enable, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java index 34048fa9..aaeb4f78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java @@ -99,5 +99,15 @@ public Builder enabled(Boolean enabled) { public ConnectionPhoneOtpAuthenticationMethod build() { return new ConnectionPhoneOtpAuthenticationMethod(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java index 0185bb7a..21291daf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java @@ -253,5 +253,15 @@ public ConnectionProfile build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java index 68d2ff0e..a69752d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java @@ -55,5 +55,15 @@ public Builder from(ConnectionProfileConfig other) { public ConnectionProfileConfig build() { return new ConnectionProfileConfig(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java index 1a3018ac..91bd8970 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java @@ -119,5 +119,15 @@ public Builder assignMembershipOnLogin( public ConnectionProfileOrganization build() { return new ConnectionProfileOrganization(showAsButton, assignMembershipOnLogin, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java index 0cc11dd5..0298a55e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java @@ -117,5 +117,15 @@ public Builder connectionConfig(ConnectionProfileStrategyOverridesConnectionConf public ConnectionProfileStrategyOverride build() { return new ConnectionProfileStrategyOverride(enabledFeatures, connectionConfig, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java index 8dea364b..39199ccf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java @@ -264,5 +264,15 @@ public ConnectionProfileStrategyOverrides build() { return new ConnectionProfileStrategyOverrides( pingfederate, ad, adfs, waad, googleApps, okta, oidc, samlp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java index 9bd05af6..228e1872 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java @@ -55,5 +55,15 @@ public Builder from(ConnectionProfileStrategyOverridesConnectionConfig other) { public ConnectionProfileStrategyOverridesConnectionConfig build() { return new ConnectionProfileStrategyOverridesConnectionConfig(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java index 473f874b..2dfd766c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java @@ -227,5 +227,15 @@ public ConnectionProfileTemplate build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java index 26b89761..70ec9721 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java @@ -151,5 +151,15 @@ public Builder template(ConnectionProfileTemplate template) { public ConnectionProfileTemplateItem build() { return new ConnectionProfileTemplateItem(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java index e0951ed4..80b1a4f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -1196,5 +1196,15 @@ public ConnectionPropertiesOptions build() { federatedConnectionsAccessTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java index 671e6777..16a87963 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java @@ -118,5 +118,15 @@ public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAcc public ConnectionPurposes build() { return new ConnectionPurposes(authentication, connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java index 9cd04eec..83a7e7e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java @@ -255,5 +255,15 @@ public ConnectionResponseCommon build() { return new ConnectionResponseCommon( id, realms, name, displayName, enabledClients, isDomainConnection, metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java index 9a9e1c71..7d6f6a6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentAd build() { provisioningTicketUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java index 06b59a18..9634ef63 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java @@ -220,6 +220,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAdfs build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -501,5 +505,17 @@ public ConnectionResponseContentAdfs build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java index 3a215ad3..e06d54bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAmazon build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentAmazon build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java index 7575922f..bbabaeb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAol build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentAol build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java index 2d61b6c8..17ae53d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentApple build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentApple build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java index 98a73dc2..e15baab6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAuth0 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentAuth0 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java index 3dcb9699..543e1198 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAuth0Oidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentAuth0Oidc build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java index f7e9325d..bada7372 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java @@ -220,6 +220,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAzureAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -501,5 +505,17 @@ public ConnectionResponseContentAzureAd build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java index 85a91247..902685a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBaidu build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentBaidu build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java index 962bded6..31db1395 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBitbucket build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentBitbucket build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java index a23068c2..ec367c96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBitly build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentBitly build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java index 3e9bd1ad..696c78ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentBox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java index 03edbe79..a8fd19ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentCustom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentCustom build() { provisioningTicketUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java index c07c1b26..6c72cb1a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentDaccount build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentDaccount build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java index 814b959d..2b4e9e89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentDropbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentDropbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java index 61378ce7..b5150028 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentDwolla build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentDwolla build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java index 2e157101..d46250bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentEmail build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java index a2911edc..1d2597c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentEvernote build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentEvernote build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java index 8f471983..58b305b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentEvernoteSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentEvernoteSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java index 1ddfcb10..881f2e20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentExact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentExact build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java index ad37e856..da0140cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentFacebook build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentFacebook build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java index b4a5f457..38057259 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentFitbit build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentFitbit build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java index 96a24810..5de190ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentFlickr build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentFlickr build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java index 1d371be0..9599f613 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentGitHub build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentGitHub build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java index 990b7816..51de45c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java @@ -221,6 +221,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentGoogleApps build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -502,5 +506,17 @@ public ConnectionResponseContentGoogleApps build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java index b3295dc8..20fb9da8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentGoogleOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentGoogleOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java index 08539362..bfe58d81 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentInstagram build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentInstagram build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java index 07e7d4c9..094eb2ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentIp build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentIp build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java index e851f1c2..221ccf76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentLine build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentLine build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java index 2b760c28..c1947285 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentLinkedin build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentLinkedin build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java index 77630d7f..7ae332fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentMiicard build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentMiicard build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java index 81ea328f..c399f197 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOAuth1 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentOAuth1 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java index 40d3ef24..51383dbf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java index c298b75b..ce6758da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java @@ -221,6 +221,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOffice365 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -502,5 +506,17 @@ public ConnectionResponseContentOffice365 build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java index 213b3670..9ada6d24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java @@ -207,6 +207,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -467,5 +471,17 @@ public ConnectionResponseContentOidc build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java index f3dbb50d..20e9c673 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOkta build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentOkta build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java index dca2392d..9732581f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPaypal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentPaypal build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java index 32efe8dd..f44f68a8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPaypalSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentPaypalSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java index e91c635e..bd807f1e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java @@ -221,6 +221,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPingFederate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -502,5 +506,17 @@ public ConnectionResponseContentPingFederate build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java index 91839127..1902c73f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPlanningCenter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentPlanningCenter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java index 3702feba..069748d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentRenren build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentRenren build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java index 7bfd7409..b2bacb11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSalesforce build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSalesforce build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java index 4f602203..5f35c197 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSalesforceCommunity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSalesforceCommunity build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java index 852ced46..53b1813c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSalesforceSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSalesforceSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java index 74adce3b..c0fc9de2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java @@ -220,6 +220,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSaml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -501,5 +505,17 @@ public ConnectionResponseContentSaml build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java index c78d6809..aaea4d95 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java @@ -210,6 +210,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSharepoint build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -470,5 +474,17 @@ public ConnectionResponseContentSharepoint build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java index 7106337f..4074e2fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentShop build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentShop build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java index f96c0ef1..0c86093f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentShopify build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentShopify build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java index 28a06252..f8f4532d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentSms build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java index 3bfb9338..e979aced 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSoundcloud build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSoundcloud build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java index 4b603dba..cc8f7aa1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentThirtySevenSignals build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentThirtySevenSignals build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java index c7251e84..d5b0dfcc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentTwitter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentTwitter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java index 3bc77460..23d17313 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentUntappd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentUntappd build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java index c7cdc2b9..ed49082c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentVkontakte build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentVkontakte build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java index 0d3dbbee..bdc4abf1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentWeibo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentWeibo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java index 88b41a5b..0b6a88b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentWindowsLive build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentWindowsLive build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java index f051f3f1..75737c39 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentWordpress build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentWordpress build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java index 0cdc4af2..6c1d2b7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentYahoo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentYahoo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java index e2e8fdcc..b6e356c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentYammer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentYammer build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java index e78cc914..a46f44e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentYandex build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentYandex build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java new file mode 100644 index 00000000..552c85a2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java @@ -0,0 +1,111 @@ +/** + * 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 = ConnectionScriptsOAuth1.Builder.class) +public final class ConnectionScriptsOAuth1 { + private final Optional fetchUserProfile; + + private final Map additionalProperties; + + private ConnectionScriptsOAuth1(Optional fetchUserProfile, Map additionalProperties) { + this.fetchUserProfile = fetchUserProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used. + */ + @JsonProperty("fetchUserProfile") + public Optional getFetchUserProfile() { + return fetchUserProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionScriptsOAuth1 && equalTo((ConnectionScriptsOAuth1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionScriptsOAuth1 other) { + return fetchUserProfile.equals(other.fetchUserProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.fetchUserProfile); + } + + @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 fetchUserProfile = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionScriptsOAuth1 other) { + fetchUserProfile(other.getFetchUserProfile()); + return this; + } + + /** + *

    Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used.

    + */ + @JsonSetter(value = "fetchUserProfile", nulls = Nulls.SKIP) + public Builder fetchUserProfile(Optional fetchUserProfile) { + this.fetchUserProfile = fetchUserProfile; + return this; + } + + public Builder fetchUserProfile(String fetchUserProfile) { + this.fetchUserProfile = Optional.ofNullable(fetchUserProfile); + return this; + } + + public ConnectionScriptsOAuth1 build() { + return new ConnectionScriptsOAuth1(fetchUserProfile, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java index 417044e5..fd54bbbe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java @@ -128,5 +128,15 @@ public Builder getLogoutUrl(String getLogoutUrl) { public ConnectionScriptsOAuth2 build() { return new ConnectionScriptsOAuth2(fetchUserProfile, getLogoutUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionSignatureMethodOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionSignatureMethodOAuth1.java new file mode 100644 index 00000000..fb76a740 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionSignatureMethodOAuth1.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class ConnectionSignatureMethodOAuth1 { + public static final ConnectionSignatureMethodOAuth1 RSA_SHA1 = + new ConnectionSignatureMethodOAuth1(Value.RSA_SHA1, "RSA-SHA1"); + + private final Value value; + + private final String string; + + ConnectionSignatureMethodOAuth1(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof ConnectionSignatureMethodOAuth1 + && this.string.equals(((ConnectionSignatureMethodOAuth1) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionSignatureMethodOAuth1 valueOf(String value) { + switch (value) { + case "RSA-SHA1": + return RSA_SHA1; + default: + return new ConnectionSignatureMethodOAuth1(Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java index e7a208f7..8000ef2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java @@ -126,5 +126,15 @@ public Builder key(String key) { public ConnectionSigningKeySaml build() { return new ConnectionSigningKeySaml(cert, key, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java index 5e6f892c..fc5e9005 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java @@ -114,5 +114,15 @@ public Builder timeStep(Integer timeStep) { public ConnectionTotpEmail build() { return new ConnectionTotpEmail(length, timeStep, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java index f036250d..70d32ae0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java @@ -114,5 +114,15 @@ public Builder timeStep(Integer timeStep) { public ConnectionTotpSms build() { return new ConnectionTotpSms(length, timeStep, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java index 44bda0cb..59797be7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java @@ -92,5 +92,15 @@ public Builder alias(ConnectionUpstreamAliasEnum alias) { public ConnectionUpstreamAlias build() { return new ConnectionUpstreamAlias(alias, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java index 61954ddb..dc8d6dd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java @@ -91,5 +91,15 @@ public Builder value(String value) { public ConnectionUpstreamValue build() { return new ConnectionUpstreamValue(value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java index 07586413..1598f80a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java @@ -82,6 +82,10 @@ public interface MaxStage { public interface _FinalStage { ConnectionUsernameValidationOptions build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage max(int max) { public ConnectionUsernameValidationOptions build() { return new ConnectionUsernameValidationOptions(min, max, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java index e95610f2..580a8682 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java @@ -125,5 +125,15 @@ public Builder username(com.auth0.client.mgmt.core.Nullable additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java index 2594ce75..1a7bdd26 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java @@ -418,5 +418,15 @@ public CreateActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java index 99fb1fd5..9b70774b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java @@ -284,5 +284,15 @@ public CreateActionModuleVersionResponseContent build() { return new CreateActionModuleVersionResponseContent( id, moduleId, versionNumber, code, secrets, dependencies, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java index 3a2f144c..75994ec6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java @@ -182,6 +182,10 @@ public interface NameStage { public interface _FinalStage { CreateActionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The list of triggers that this action supports. At this time, an action can only target a single trigger at a time.

    */ @@ -450,5 +454,17 @@ public CreateActionRequestContent build() { deploy, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java index 288a8207..cd81955f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java @@ -598,5 +598,15 @@ public CreateActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java index 8c57882a..c1681dd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java @@ -167,6 +167,10 @@ public interface NameStage { public interface _FinalStage { CreateBrandingPhoneProviderResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -375,5 +379,17 @@ public CreateBrandingPhoneProviderResponseContent build() { return new CreateBrandingPhoneProviderResponseContent( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java index 10eca3e8..9f71be38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java @@ -176,6 +176,10 @@ public interface WidgetStage { public interface _FinalStage { CreateBrandingThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -283,5 +287,17 @@ public CreateBrandingThemeResponseContent build() { return new CreateBrandingThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java index a3df1c27..d9397494 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public CreateClientAuthenticationMethodSelfSignedTlsClientAuth build() { return new CreateClientAuthenticationMethodSelfSignedTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java index 536a09eb..cd8b4ef4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java @@ -182,6 +182,10 @@ public interface AudienceStage { public interface _FinalStage { CreateClientGrantRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage organizationUsage(Optional organizationUsage); _FinalStage organizationUsage(ClientGrantOrganizationUsageEnum organizationUsage); @@ -398,5 +402,17 @@ public CreateClientGrantRequestContent build() { allowAllScopes, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java index ff975489..a507b69c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java @@ -379,5 +379,15 @@ public CreateClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java index 989e3151..31774991 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -292,7 +292,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -358,7 +358,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -404,7 +404,7 @@ public Optional getCrossOriginLoc() { } /** - * @return <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>) + * @return true to disable Single Sign On, false otherwise (default: false) */ @JsonProperty("sso_disabled") public Optional getSsoDisabled() { @@ -412,7 +412,7 @@ public Optional getSsoDisabled() { } /** - * @return <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code> + * @return true if the custom login page is to be used, false otherwise. Defaults to true */ @JsonProperty("custom_login_page_on") public Optional getCustomLoginPageOn() { @@ -769,6 +769,10 @@ public interface NameStage { public interface _FinalStage { CreateClientRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Free text description of this client (max length: 140 characters).

    */ @@ -815,7 +819,7 @@ _FinalStage sessionTransfer( _FinalStage allowedOrigins(List allowedOrigins); /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ _FinalStage webOrigins(Optional> webOrigins); @@ -872,7 +876,7 @@ _FinalStage sessionTransfer( _FinalStage isFirstParty(Boolean isFirstParty); /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ _FinalStage oidcConformant(Optional oidcConformant); @@ -912,14 +916,14 @@ _FinalStage sessionTransfer( _FinalStage crossOriginLoc(String crossOriginLoc); /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    */ _FinalStage ssoDisabled(Optional ssoDisabled); _FinalStage ssoDisabled(Boolean ssoDisabled); /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code>

    + *

    true if the custom login page is to be used, false otherwise. Defaults to true

    */ _FinalStage customLoginPageOn(Optional customLoginPageOn); @@ -1766,7 +1770,7 @@ public _FinalStage customLoginPage(Optional customLoginPage) { } /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code>

    + *

    true if the custom login page is to be used, false otherwise. Defaults to true

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -1776,7 +1780,7 @@ public _FinalStage customLoginPageOn(Boolean customLoginPageOn) { } /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code>

    + *

    true if the custom login page is to be used, false otherwise. Defaults to true

    */ @java.lang.Override @JsonSetter(value = "custom_login_page_on", nulls = Nulls.SKIP) @@ -1786,7 +1790,7 @@ public _FinalStage customLoginPageOn(Optional customLoginPageOn) { } /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -1796,7 +1800,7 @@ public _FinalStage ssoDisabled(Boolean ssoDisabled) { } /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    */ @java.lang.Override @JsonSetter(value = "sso_disabled", nulls = Nulls.SKIP) @@ -1914,7 +1918,7 @@ public _FinalStage jwtConfiguration(Optional jwtConfigur } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -1924,7 +1928,7 @@ public _FinalStage oidcConformant(Boolean oidcConformant) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @java.lang.Override @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) @@ -2081,7 +2085,7 @@ public _FinalStage clientAliases(Optional> clientAliases) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -2091,7 +2095,7 @@ public _FinalStage webOrigins(List webOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @java.lang.Override @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) @@ -2298,5 +2302,17 @@ public CreateClientRequestContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java index 043fc623..5d630af0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public CreateClientResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java index 59edb6be..9ccac95c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java @@ -197,5 +197,15 @@ public CreateConnectionCommon build() { return new CreateConnectionCommon( name, displayName, enabledClients, isDomainConnection, metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java index 186bed14..28eeefe0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java @@ -133,6 +133,10 @@ public interface NameStage { public interface _FinalStage { CreateConnectionProfileRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage organization(Optional organization); _FinalStage organization(ConnectionProfileOrganization organization); @@ -267,5 +271,17 @@ public CreateConnectionProfileRequestContent build() { strategyOverrides, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java index 814a7bba..c1eb3e2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java @@ -254,5 +254,15 @@ public CreateConnectionProfileResponseContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java index 153b6ba8..93f11a0d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -109,7 +109,7 @@ public Optional> getEnabledClients() { } /** - * @return <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.) + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) */ @JsonProperty("is_domain_connection") public Optional getIsDomainConnection() { @@ -117,7 +117,7 @@ public Optional getIsDomainConnection() { } /** - * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.) + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) */ @JsonProperty("show_as_button") public Optional getShowAsButton() { @@ -213,6 +213,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Connection name used in the new universal login experience

    */ @@ -232,14 +236,14 @@ public interface _FinalStage { _FinalStage enabledClients(List enabledClients); /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ _FinalStage showAsButton(Optional showAsButton); @@ -389,7 +393,7 @@ public _FinalStage realms(Optional> realms) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -399,7 +403,7 @@ public _FinalStage showAsButton(Boolean showAsButton) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) @@ -409,7 +413,7 @@ public _FinalStage showAsButton(Optional showAsButton) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -419,7 +423,7 @@ public _FinalStage isDomainConnection(Boolean isDomainConnection) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) @@ -497,5 +501,17 @@ public CreateConnectionRequestContent build() { connectedAccounts, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java index a39e1f8b..f639769e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java @@ -149,6 +149,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -304,5 +308,17 @@ public CreateConnectionRequestContentAd build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java index 29a9fad1..2c2566fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAdfs build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentAdfs build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java index 985b365c..c6d9ddec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAmazon build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentAmazon build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java index ad89a2c2..fdce69bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java @@ -149,6 +149,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAol build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -304,5 +308,17 @@ public CreateConnectionRequestContentAol build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java index 39ddcecb..c49bac30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentApple build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentApple build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java index d46c7d77..e7978990 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAuth0 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentAuth0 build() { realms, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java index 215a4e01..55fa163b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAuth0Oidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentAuth0Oidc build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java index c707c518..16ed09eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAzureAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentAzureAd build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java index 6b26ee9c..5c7bdd69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBaidu build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentBaidu build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java index 8ab2c41f..9b433c51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBitbucket build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentBitbucket build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java index a8c54a01..22f885d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBitly build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentBitly build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java index ec8c18d2..860ecbbe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java @@ -174,6 +174,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -371,5 +375,17 @@ public CreateConnectionRequestContentBox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java index 69fbc071..a6e3ce79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentCustom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentCustom build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java index e1cf23cd..b838c74c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentDaccount build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentDaccount build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java index e18596db..c68e1a78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentDropbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentDropbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java index ffc50c51..0f514b6f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentDwolla build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentDwolla build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java index 6df99334..89a5ad6b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentEmail build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java index 33345f06..3ce5c019 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentEvernote build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentEvernote build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java index c37610a4..32867949 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentEvernoteSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentEvernoteSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java index b386a3dc..310bee1e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentExact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentExact build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java index a565efdc..7a6c29ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentFacebook build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentFacebook build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java index 12ee2564..af2a012c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentFitbit build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentFitbit build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java index 184dd135..07cdc167 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentFlickr build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentFlickr build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java index 7d377cb5..c4f02579 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentGitHub build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentGitHub build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java index a9d09791..f2d48d06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentGoogleApps build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentGoogleApps build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java index a98522f2..a9ff7e3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentGoogleOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentGoogleOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java index c379d890..6295dab0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentInstagram build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentInstagram build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java index f284b1ad..d841ade3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java @@ -160,6 +160,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentIp build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -336,5 +340,17 @@ public CreateConnectionRequestContentIp build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java index 0f274f57..30ae3f58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentLine build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentLine build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java index 51d62632..58a0f670 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentLinkedin build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentLinkedin build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java index 4ca4cf2c..8c10cc00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentMiicard build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentMiicard build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java index 38faf914..14c1670a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOAuth1 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentOAuth1 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java index c2f3f7c2..41ae2365 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java index 71f320c1..a8687b6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOffice365 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentOffice365 build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java index 8b12c920..2c700ac5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java @@ -183,6 +183,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -401,5 +405,17 @@ public CreateConnectionRequestContentOidc build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java index 46145dc3..5f323849 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOkta build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentOkta build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java index 08b5d4c7..425f2e99 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPaypal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentPaypal build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java index 63e767dc..b3afa8fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPaypalSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentPaypalSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java index b4db01e8..b08d35c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPingFederate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentPingFederate build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java index e395eeb3..053bd3ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPlanningCenter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentPlanningCenter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java index 48c2259f..a4a67945 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentRenren build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentRenren build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java index af2ee2fb..30d404ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSalesforce build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentSalesforce build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java index 8d5db096..d93926d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java @@ -151,6 +151,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSalesforceCommunity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -306,5 +310,17 @@ public CreateConnectionRequestContentSalesforceCommunity build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java index 397d8197..a0020e7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java @@ -151,6 +151,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSalesforceSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -306,5 +310,17 @@ public CreateConnectionRequestContentSalesforceSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java index d9c3b581..46e6431d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSaml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentSaml build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java index 37163ff3..236a816a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSharepoint build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentSharepoint build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java index 5c84a7e1..e590a9ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentShop build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentShop build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java index c1fd8d82..414cf176 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentShopify build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentShopify build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java index 6d62e3f7..cd88021e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java @@ -149,6 +149,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -304,5 +308,17 @@ public CreateConnectionRequestContentSms build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java index 6a02a339..4479d703 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSoundcloud build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentSoundcloud build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java index bca038c6..e53c1ccb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java @@ -151,6 +151,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentThirtySevenSignals build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -306,5 +310,17 @@ public CreateConnectionRequestContentThirtySevenSignals build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java index 8a1d4df9..5e29efc2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentTwitter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentTwitter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java index af702ef0..3cf0342e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentUntappd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentUntappd build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java index 7546ab15..5411a4f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentVkontakte build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentVkontakte build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java index e069036b..7a945f80 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentWeibo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentWeibo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java index fcd4cb15..d5061d85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentWindowsLive build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentWindowsLive build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java index 64ba24f7..170bbeec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentWordpress build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentWordpress build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java index 5f87e25d..1cd054a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentYahoo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentYahoo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java index 4aa12f7d..777cd6b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentYammer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentYammer build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java index e031ddde..e128624c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentYandex build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentYandex build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java index 5a82d2dc..112fa2eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java @@ -432,5 +432,15 @@ public CreateConnectionResponseContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java index 55bfe702..7c33e18d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java @@ -159,6 +159,10 @@ public interface TypeStage { public interface _FinalStage { CreateCustomDomainRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage verificationMethod(Optional verificationMethod); _FinalStage verificationMethod(CustomDomainVerificationMethodEnum verificationMethod); @@ -346,5 +350,17 @@ public CreateCustomDomainRequestContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java index fbb92a45..56378f8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java @@ -260,6 +260,10 @@ public interface VerificationStage { public interface _FinalStage { CreateCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -566,5 +570,17 @@ public CreateCustomDomainResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java index 33b3d9e0..da8903a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java @@ -131,5 +131,15 @@ public CreateDirectoryProvisioningRequestContent build() { return new CreateDirectoryProvisioningRequestContent( mapping, synchronizeAutomatically, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java index 04a0d2f8..ab6b6b7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java @@ -247,6 +247,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateDirectoryProvisioningResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -509,5 +513,17 @@ public CreateDirectoryProvisioningResponseContent build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java index 1619f813..af32124c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java @@ -116,6 +116,10 @@ public interface StatusStage { public interface _FinalStage { CreateDirectorySynchronizationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -180,5 +184,17 @@ public CreateDirectorySynchronizationResponseContent build() { return new CreateDirectorySynchronizationResponseContent( connectionId, synchronizationId, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java index 25db1c9d..3677195f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java @@ -209,5 +209,15 @@ public CreateEmailProviderResponseContent build() { return new CreateEmailProviderResponseContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java index 646bb455..bcd7eb30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java @@ -261,6 +261,10 @@ public interface TemplateStage { public interface _FinalStage { CreateEmailTemplateRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -776,5 +780,17 @@ public CreateEmailTemplateRequestContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java index 3eac25b6..863fa1f3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java @@ -262,6 +262,10 @@ public interface TemplateStage { public interface _FinalStage { CreateEmailTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -777,5 +781,17 @@ public CreateEmailTemplateResponseContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java index bc6ac47a..8f945052 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java @@ -92,6 +92,10 @@ public interface AlgorithmStage { public interface _FinalStage { CreateEncryptionKeyPublicWrappingResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -135,5 +139,17 @@ public _FinalStage algorithm(@NotNull EncryptionKeyPublicWrappingAlgorithm algor public CreateEncryptionKeyPublicWrappingResponseContent build() { return new CreateEncryptionKeyPublicWrappingResponseContent(publicKey, algorithm, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java index 922f8ddd..08839950 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java @@ -201,6 +201,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateEncryptionKeyResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -413,5 +417,17 @@ public CreateEncryptionKeyResponseContent build() { return new CreateEncryptionKeyResponseContent( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java index b415797b..a1fafaea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java @@ -113,6 +113,10 @@ public interface DestinationStage { public interface _FinalStage { CreateEventStreamActionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the event stream.

    */ @@ -221,5 +225,17 @@ public CreateEventStreamActionRequestContent build() { return new CreateEventStreamActionRequestContent( name, subscriptions, destination, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java index 08b37a54..ce8053cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java @@ -113,6 +113,10 @@ public interface DestinationStage { public interface _FinalStage { CreateEventStreamEventBridgeRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the event stream.

    */ @@ -221,5 +225,17 @@ public CreateEventStreamEventBridgeRequestContent build() { return new CreateEventStreamEventBridgeRequestContent( name, subscriptions, destination, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java index 561e13d3..da8201ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java @@ -193,5 +193,15 @@ public CreateEventStreamRedeliveryResponseContent build() { return new CreateEventStreamRedeliveryResponseContent( dateFrom, dateTo, statuses, eventTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java index 0909fa7f..e13f826d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java @@ -85,6 +85,10 @@ public interface EventTypeStage { public interface _FinalStage { CreateEventStreamTestEventRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage data(Optional> data); _FinalStage data(Map data); @@ -132,5 +136,17 @@ public _FinalStage data(Optional> data) { public CreateEventStreamTestEventRequestContent build() { return new CreateEventStreamTestEventRequestContent(eventType, data, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java index 2269e28f..1421fc9d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java @@ -155,6 +155,10 @@ public interface EventTypeStage { public interface _FinalStage { CreateEventStreamTestEventResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Results of delivery attempts

    */ @@ -290,5 +294,17 @@ public CreateEventStreamTestEventResponseContent build() { return new CreateEventStreamTestEventResponseContent( id, eventStreamId, status, eventType, attempts, event, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java index c0ef573b..eb3ceacd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java @@ -113,6 +113,10 @@ public interface DestinationStage { public interface _FinalStage { CreateEventStreamWebHookRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the event stream.

    */ @@ -221,5 +225,17 @@ public CreateEventStreamWebHookRequestContent build() { return new CreateEventStreamWebHookRequestContent( name, subscriptions, destination, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java index 48ebd22d..d98a7b0a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java @@ -90,6 +90,10 @@ public interface NameStage { public interface _FinalStage { CreateExportUsersFields build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Title of the column in the exported CSV.

    */ @@ -152,5 +156,17 @@ public _FinalStage exportAs(Optional exportAs) { public CreateExportUsersFields build() { return new CreateExportUsersFields(name, exportAs, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java index ab3539c9..31a11a0b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java @@ -192,6 +192,10 @@ public interface IdStage { public interface _FinalStage { CreateExportUsersResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -395,5 +399,17 @@ public CreateExportUsersResponseContent build() { return new CreateExportUsersResponseContent( status, type, createdAt, id, connectionId, format, limit, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java index 929af5f3..98f221aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java @@ -83,6 +83,10 @@ public interface NameStage { public interface _FinalStage { CreateFlowRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -130,5 +134,17 @@ public _FinalStage actions(Optional> actions) { public CreateFlowRequestContent build() { return new CreateFlowRequestContent(name, actions, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java index eabb8c19..1dce6833 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java @@ -139,6 +139,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateFlowResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -237,5 +241,17 @@ public CreateFlowResponseContent build() { return new CreateFlowResponseContent( id, name, actions, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java index ca63ad15..4b9f4b2f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionActivecampaignApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKeyWithBaseUrl setu public CreateFlowsVaultConnectionActivecampaignApiKey build() { return new CreateFlowsVaultConnectionActivecampaignApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java index 4cc4f4e8..0a6b54c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionActivecampaignUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdActivecampaignEnum ap public CreateFlowsVaultConnectionActivecampaignUninitialized build() { return new CreateFlowsVaultConnectionActivecampaignUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java index e81a2ae9..1a298c34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionAirtableApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKey setup) { public CreateFlowsVaultConnectionAirtableApiKey build() { return new CreateFlowsVaultConnectionAirtableApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java index c2274bde..73bec5fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionAirtableUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdAirtableEnum appId) { public CreateFlowsVaultConnectionAirtableUninitialized build() { return new CreateFlowsVaultConnectionAirtableUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java index 1668929f..5301b141 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionAuth0OauthApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthApp setup) { public CreateFlowsVaultConnectionAuth0OauthApp build() { return new CreateFlowsVaultConnectionAuth0OauthApp(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java index 779254ba..be7b9c47 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionAuth0Uninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdAuth0Enum appId) { public CreateFlowsVaultConnectionAuth0Uninitialized build() { return new CreateFlowsVaultConnectionAuth0Uninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java index 35f31b84..83ad39ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionBigqueryJwt build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupBigqueryOauthJwt setup public CreateFlowsVaultConnectionBigqueryJwt build() { return new CreateFlowsVaultConnectionBigqueryJwt(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java index bf636825..64309c78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionBigqueryUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdBigqueryEnum appId) { public CreateFlowsVaultConnectionBigqueryUninitialized build() { return new CreateFlowsVaultConnectionBigqueryUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java index fab2da8c..47c25b64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionClearbitApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupSecretApiKey setup) { public CreateFlowsVaultConnectionClearbitApiKey build() { return new CreateFlowsVaultConnectionClearbitApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java index b6717e20..3a5c776f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionClearbitUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdClearbitEnum appId) { public CreateFlowsVaultConnectionClearbitUninitialized build() { return new CreateFlowsVaultConnectionClearbitUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java index 5f0146cc..a7b26704 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionDocusignOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionDocusignOauthCode build() { return new CreateFlowsVaultConnectionDocusignOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java index 8813762a..d98b3ab2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionDocusignUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdDocusignEnum appId) { public CreateFlowsVaultConnectionDocusignUninitialized build() { return new CreateFlowsVaultConnectionDocusignUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java index 4fcb146b..b3d8b851 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionGoogleSheetsOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionGoogleSheetsOauthCode build() { return new CreateFlowsVaultConnectionGoogleSheetsOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java index 288d85a0..a6582ca2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionGoogleSheetsUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdGoogleSheetsEnum appI public CreateFlowsVaultConnectionGoogleSheetsUninitialized build() { return new CreateFlowsVaultConnectionGoogleSheetsUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java index 38a89756..e92d0581 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectionHttpApiKeySetup setup) { public CreateFlowsVaultConnectionHttpApiKey build() { return new CreateFlowsVaultConnectionHttpApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java index 6e4cba3a..ed376185 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpBasicAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectionHttpBasicAuthSetup setup) public CreateFlowsVaultConnectionHttpBasicAuth build() { return new CreateFlowsVaultConnectionHttpBasicAuth(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java index 9da985db..37290ead 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpBearer build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupHttpBearer setup) { public CreateFlowsVaultConnectionHttpBearer build() { return new CreateFlowsVaultConnectionHttpBearer(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java index aecc97ac..60888598 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpOauthClientCredentials build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectionHttpOauthClientCredentials public CreateFlowsVaultConnectionHttpOauthClientCredentials build() { return new CreateFlowsVaultConnectionHttpOauthClientCredentials(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java index 1dcb5b91..aaaff6f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdHttpEnum appId) { public CreateFlowsVaultConnectionHttpUninitialized build() { return new CreateFlowsVaultConnectionHttpUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java index 742f14ea..9d4a11bd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHubspotApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKey setup) { public CreateFlowsVaultConnectionHubspotApiKey build() { return new CreateFlowsVaultConnectionHubspotApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java index d8fd3237..682862ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHubspotOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionHubspotOauthCode build() { return new CreateFlowsVaultConnectionHubspotOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java index 980dd306..93935a48 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionHubspotUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdHubspotEnum appId) { public CreateFlowsVaultConnectionHubspotUninitialized build() { return new CreateFlowsVaultConnectionHubspotUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java index 8df737fa..0785b7bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java @@ -104,6 +104,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionJwtJwt build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -157,5 +161,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupJwt setup) { public CreateFlowsVaultConnectionJwtJwt build() { return new CreateFlowsVaultConnectionJwtJwt(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java index 97b2e4d4..f0e8e415 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionJwtUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdJwtEnum appId) { public CreateFlowsVaultConnectionJwtUninitialized build() { return new CreateFlowsVaultConnectionJwtUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java index 0d407e44..4041a30f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionMailchimpApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupSecretApiKey setup) { public CreateFlowsVaultConnectionMailchimpApiKey build() { return new CreateFlowsVaultConnectionMailchimpApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java index 180f4a21..d52bd220 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionMailchimpOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionMailchimpOauthCode build() { return new CreateFlowsVaultConnectionMailchimpOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java index 5148e5a9..ad41b4c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionMailchimpUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdMailchimpEnum appId) public CreateFlowsVaultConnectionMailchimpUninitialized build() { return new CreateFlowsVaultConnectionMailchimpUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java index 21423637..aabbdfc3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionMailjetApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupMailjetApiKey setup) { public CreateFlowsVaultConnectionMailjetApiKey build() { return new CreateFlowsVaultConnectionMailjetApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java index 57a5e150..e7685921 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionMailjetUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdMailjetEnum appId) { public CreateFlowsVaultConnectionMailjetUninitialized build() { return new CreateFlowsVaultConnectionMailjetUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java index 3030697e..c08c0013 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionPipedriveOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionPipedriveOauthCode build() { return new CreateFlowsVaultConnectionPipedriveOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java index 1b98642e..60d17bb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionPipedriveToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupToken setup) { public CreateFlowsVaultConnectionPipedriveToken build() { return new CreateFlowsVaultConnectionPipedriveToken(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java index fb097f10..985f69d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionPipedriveUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdPipedriveEnum appId) public CreateFlowsVaultConnectionPipedriveUninitialized build() { return new CreateFlowsVaultConnectionPipedriveUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java index 845c6872..87e6bcde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java @@ -246,6 +246,10 @@ public interface FingerprintStage { public interface _FinalStage { CreateFlowsVaultConnectionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection environment.

    */ @@ -472,5 +476,17 @@ public CreateFlowsVaultConnectionResponseContent build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java index 36b769b0..49533d15 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSalesforceOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionSalesforceOauthCode build() { return new CreateFlowsVaultConnectionSalesforceOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java index 7688dad3..146ce72b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionSalesforceUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdSalesforceEnum appId) public CreateFlowsVaultConnectionSalesforceUninitialized build() { return new CreateFlowsVaultConnectionSalesforceUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java index 4741baac..9ef8e063 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSendgridApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKey setup) { public CreateFlowsVaultConnectionSendgridApiKey build() { return new CreateFlowsVaultConnectionSendgridApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java index 2ba4df93..40eb5406 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionSendgridUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdSendgridEnum appId) { public CreateFlowsVaultConnectionSendgridUninitialized build() { return new CreateFlowsVaultConnectionSendgridUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java index 0195263a..63222a79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSlackOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionSlackOauthCode build() { return new CreateFlowsVaultConnectionSlackOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java index 6bc6094f..33fbd9dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionSlackUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdSlackEnum appId) { public CreateFlowsVaultConnectionSlackUninitialized build() { return new CreateFlowsVaultConnectionSlackUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java index 51dcefeb..853ad61d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSlackWebhook build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupWebhook setup) { public CreateFlowsVaultConnectionSlackWebhook build() { return new CreateFlowsVaultConnectionSlackWebhook(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java index e3b11daf..1b2ad99c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionStripeKeyPair build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupStripeKeyPair setup) { public CreateFlowsVaultConnectionStripeKeyPair build() { return new CreateFlowsVaultConnectionStripeKeyPair(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java index 19f3e4a4..87f0ee04 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionStripeOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionStripeOauthCode build() { return new CreateFlowsVaultConnectionStripeOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java index c8dedfa4..607e9ae2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionStripeUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdStripeEnum appId) { public CreateFlowsVaultConnectionStripeUninitialized build() { return new CreateFlowsVaultConnectionStripeUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java index c61fabea..09b10661 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionTelegramToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupToken setup) { public CreateFlowsVaultConnectionTelegramToken build() { return new CreateFlowsVaultConnectionTelegramToken(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java index 7f1973cf..a088e49f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionTelegramUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdTelegramEnum appId) { public CreateFlowsVaultConnectionTelegramUninitialized build() { return new CreateFlowsVaultConnectionTelegramUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java index de553b4c..2921ee21 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionTwilioApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupTwilioApiKey setup) { public CreateFlowsVaultConnectionTwilioApiKey build() { return new CreateFlowsVaultConnectionTwilioApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java index ece43e2c..abe3037e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionTwilioUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdTwilioEnum appId) { public CreateFlowsVaultConnectionTwilioUninitialized build() { return new CreateFlowsVaultConnectionTwilioUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java index 66ebd11b..246626fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionWhatsappToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupToken setup) { public CreateFlowsVaultConnectionWhatsappToken build() { return new CreateFlowsVaultConnectionWhatsappToken(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java index 5c396e59..ccbcf55e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionWhatsappUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdWhatsappEnum appId) { public CreateFlowsVaultConnectionWhatsappUninitialized build() { return new CreateFlowsVaultConnectionWhatsappUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java index 80016bda..0e344a13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionZapierUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdZapierEnum appId) { public CreateFlowsVaultConnectionZapierUninitialized build() { return new CreateFlowsVaultConnectionZapierUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java index 1c4c7397..214722b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionZapierWebhook build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupWebhook setup) { public CreateFlowsVaultConnectionZapierWebhook build() { return new CreateFlowsVaultConnectionZapierWebhook(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java index facd598a..b9856cf5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java @@ -154,6 +154,10 @@ public interface NameStage { public interface _FinalStage { CreateFormRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -322,5 +326,17 @@ public CreateFormRequestContent build() { return new CreateFormRequestContent( name, messages, languages, translations, nodes, start, ending, style, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java index 559f3115..b3741747 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java @@ -222,6 +222,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateFormResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -473,5 +477,17 @@ public CreateFormResponseContent build() { submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java index 70908567..176711e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java @@ -127,5 +127,15 @@ public Builder ticketUrl(String ticketUrl) { public CreateGuardianEnrollmentTicketResponseContent build() { return new CreateGuardianEnrollmentTicketResponseContent(ticketId, ticketUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java index eec5dddb..821c0efe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java @@ -138,6 +138,10 @@ public interface TriggerIdStage { public interface _FinalStage { CreateHookRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this hook will be executed (true) or ignored (false).

    */ @@ -245,5 +249,17 @@ public _FinalStage enabled(Optional enabled) { public CreateHookRequestContent build() { return new CreateHookRequestContent(name, script, enabled, dependencies, triggerId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java index b269591d..d55ed849 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java @@ -244,5 +244,15 @@ public CreateHookResponseContent build() { return new CreateHookResponseContent( triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java index f74fce54..b563c018 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java @@ -174,6 +174,10 @@ public interface ConnectionIdStage { public interface _FinalStage { CreateImportUsersResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Customer-defined ID.

    */ @@ -298,5 +302,17 @@ public CreateImportUsersResponseContent build() { return new CreateImportUsersResponseContent( status, type, createdAt, id, connectionId, externalId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java index c08e3d85..05b9227b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamDatadogRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamDatadogRequestBody build() { return new CreateLogStreamDatadogRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java index bfd39794..f346aff2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java @@ -154,6 +154,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamEventBridgeRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -332,5 +336,17 @@ public CreateLogStreamEventBridgeRequestBody build() { return new CreateLogStreamEventBridgeRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java index 14a4ec8d..8ba035ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java @@ -154,6 +154,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamEventGridRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -332,5 +336,17 @@ public CreateLogStreamEventGridRequestBody build() { return new CreateLogStreamEventGridRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java index 9b5ada74..b8d434f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamHttpRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamHttpRequestBody build() { return new CreateLogStreamHttpRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java index 81950fe0..e1a694c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java @@ -154,6 +154,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamMixpanelRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -332,5 +336,17 @@ public CreateLogStreamMixpanelRequestBody build() { return new CreateLogStreamMixpanelRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java index 89db85cc..c17c53ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamSegmentRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamSegmentRequestBody build() { return new CreateLogStreamSegmentRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java index 04768065..9490b9ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamSplunkRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamSplunkRequestBody build() { return new CreateLogStreamSplunkRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java index 4cac7ed6..27c592dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamSumoRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamSumoRequestBody build() { return new CreateLogStreamSumoRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java index 992ec4de..bbccab70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java @@ -126,6 +126,10 @@ public interface RuleStage { public interface _FinalStage { CreateNetworkAclRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -194,5 +198,17 @@ public _FinalStage rule(@NotNull NetworkAclRule rule) { public CreateNetworkAclRequestContent build() { return new CreateNetworkAclRequestContent(description, active, priority, rule, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java index 4802b453..c67e921e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { CreateOrganizationDiscoveryDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public CreateOrganizationDiscoveryDomainResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java index 1c4ca998..a02395ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java @@ -465,5 +465,15 @@ public CreateOrganizationInvitationResponseContent build() { ticketId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java index 21128ede..81852cb7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java @@ -140,6 +140,10 @@ public interface NameStage { public interface _FinalStage { CreateOrganizationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name of this organization.

    */ @@ -293,5 +297,17 @@ public CreateOrganizationRequestContent build() { return new CreateOrganizationRequestContent( name, displayName, branding, metadata, enabledConnections, tokenQuota, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java index 30aaaa64..1b8144fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java @@ -265,5 +265,15 @@ public CreateOrganizationResponseContent build() { return new CreateOrganizationResponseContent( id, name, displayName, branding, metadata, tokenQuota, enabledConnections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java index 0f46dfd8..89a97c9d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java @@ -127,5 +127,15 @@ public Builder message(String message) { public CreatePhoneProviderSendTestResponseContent build() { return new CreatePhoneProviderSendTestResponseContent(code, message, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java index ae6277c2..b365e78e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java @@ -155,6 +155,10 @@ public interface DisabledStage { public interface _FinalStage { CreatePhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -278,5 +282,17 @@ public CreatePhoneTemplateResponseContent build() { return new CreatePhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java index 217c9314..1e02cf28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java @@ -72,6 +72,10 @@ public interface MessageStage { public interface _FinalStage { CreatePhoneTemplateTestNotificationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -100,5 +104,17 @@ public _FinalStage message(@NotNull String message) { public CreatePhoneTemplateTestNotificationResponseContent build() { return new CreatePhoneTemplateTestNotificationResponseContent(message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java index 9f2cab85..02793485 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java @@ -70,7 +70,7 @@ public String getValue() { } /** - * @return Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>. + * @return Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. */ @JsonProperty("device_id") public String getDeviceId() { @@ -141,7 +141,7 @@ public interface ValueStage { public interface DeviceIdStage { /** - *

    Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>.

    + *

    Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

    */ _FinalStage deviceId(@NotNull String deviceId); } @@ -149,6 +149,10 @@ public interface DeviceIdStage { public interface _FinalStage { CreatePublicKeyDeviceCredentialRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    client_id of the client (application) this credential is for.

    */ @@ -216,8 +220,8 @@ public DeviceIdStage value(@NotNull String value) { } /** - *

    Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>.

    - *

    Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>.

    + *

    Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

    + *

    Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -252,5 +256,17 @@ public CreatePublicKeyDeviceCredentialRequestContent build() { return new CreatePublicKeyDeviceCredentialRequestContent( deviceName, type, value, deviceId, clientId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java index 7287d494..13a068cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java @@ -77,6 +77,10 @@ public interface IdStage { public interface _FinalStage { CreatePublicKeyDeviceCredentialResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage id(@NotNull String id) { public CreatePublicKeyDeviceCredentialResponseContent build() { return new CreatePublicKeyDeviceCredentialResponseContent(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java index 5bc6d05a..7d7b51dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java @@ -292,6 +292,10 @@ public interface IdentifierStage { public interface _FinalStage { CreateResourceServerRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for this resource server. Can not contain < or > characters.

    */ @@ -778,5 +782,17 @@ public CreateResourceServerRequestContent build() { subjectTypeAuthorization, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java index 67178cce..2e2cdc70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java @@ -738,5 +738,15 @@ public CreateResourceServerResponseContent build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java index 3af2f35e..ac4d8e96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java @@ -91,6 +91,10 @@ public interface NameStage { public interface _FinalStage { CreateRoleRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Description of the role.

    */ @@ -153,5 +157,17 @@ public _FinalStage description(Optional description) { public CreateRoleRequestContent build() { return new CreateRoleRequestContent(name, description, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java index 63cb8d6c..a58277c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java @@ -157,5 +157,15 @@ public Builder description(String description) { public CreateRoleResponseContent build() { return new CreateRoleResponseContent(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java index 7726d91f..70234113 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java @@ -127,6 +127,10 @@ public interface ScriptStage { public interface _FinalStage { CreateRuleRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Order that this rule should execute in relative to other rules. Lower-valued rules execute first.

    */ @@ -234,5 +238,17 @@ public _FinalStage order(Optional order) { public CreateRuleRequestContent build() { return new CreateRuleRequestContent(name, script, order, enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java index 5b3dc415..fae9f0c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public CreateRuleResponseContent build() { return new CreateRuleResponseContent(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java index bc963964..c0998c2a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java @@ -130,5 +130,15 @@ public Builder mapping(List mapping) { public CreateScimConfigurationRequestContent build() { return new CreateScimConfigurationRequestContent(userIdAttribute, mapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java index d9e4761b..8174a988 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java @@ -328,5 +328,15 @@ public CreateScimConfigurationResponseContent build() { updatedOn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java index 8eaff6e5..417ffc8b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java @@ -221,5 +221,15 @@ public CreateScimTokenResponseContent build() { return new CreateScimTokenResponseContent( tokenId, token, scopes, createdAt, validUntil, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java index 565c957f..3240bf39 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java @@ -75,7 +75,7 @@ public Optional getBranding() { } /** - * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate] + * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate] */ @JsonProperty("allowed_strategies") public Optional> getAllowedStrategies() { @@ -151,6 +151,10 @@ public interface NameStage { public interface _FinalStage { CreateSelfServiceProfileRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The description of the self-service Profile.

    */ @@ -163,7 +167,7 @@ public interface _FinalStage { _FinalStage branding(SelfServiceProfileBrandingProperties branding); /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ _FinalStage allowedStrategies(Optional> allowedStrategies); @@ -267,7 +271,7 @@ public _FinalStage userAttributes(Optional } /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +281,7 @@ public _FinalStage allowedStrategies(List } /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ @java.lang.Override @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) @@ -330,5 +334,17 @@ public CreateSelfServiceProfileRequestContent build() { userAttributeProfileId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java index 970cdd8e..e74ef810 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java @@ -119,7 +119,7 @@ public Optional getBranding() { } /** - * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate] + * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate] */ @JsonProperty("allowed_strategies") public Optional> getAllowedStrategies() { @@ -315,7 +315,7 @@ public Builder branding(SelfServiceProfileBrandingProperties branding) { } /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) public Builder allowedStrategies(Optional> allowedStrategies) { @@ -355,5 +355,15 @@ public CreateSelfServiceProfileResponseContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java index 3258ba8b..d0913663 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java @@ -99,5 +99,15 @@ public Builder ticket(String ticket) { public CreateSelfServiceProfileSsoTicketResponseContent build() { return new CreateSelfServiceProfileSsoTicketResponseContent(ticket, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java index 44077540..191c7374 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java @@ -133,6 +133,10 @@ public interface TypeStage { public interface _FinalStage { CreateTokenExchangeProfileRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -208,5 +212,17 @@ public CreateTokenExchangeProfileRequestContent build() { return new CreateTokenExchangeProfileRequestContent( name, subjectTokenType, actionId, type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java index 523fd951..5c218bf6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java @@ -277,5 +277,15 @@ public CreateTokenExchangeProfileResponseContent build() { return new CreateTokenExchangeProfileResponseContent( id, name, subjectTokenType, actionId, type, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java index 6e97155f..98ebcca1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java @@ -70,6 +70,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { CreateTokenQuota build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public CreateTokenQuota build() { return new CreateTokenQuota(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java index 8f884ed8..2d3be097 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java @@ -95,6 +95,10 @@ public interface NameStage { public interface _FinalStage { CreateUserAttributeProfileRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage userId(Optional userId); _FinalStage userId(UserAttributeProfileUserId userId); @@ -179,5 +183,17 @@ public _FinalStage userId(Optional userId) { public CreateUserAttributeProfileRequestContent build() { return new CreateUserAttributeProfileRequestContent(name, userId, userAttributes, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java index 2f7a2701..363dd6cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java @@ -170,5 +170,15 @@ public CreateUserAttributeProfileResponseContent build() { return new CreateUserAttributeProfileResponseContent( id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java index 006836f7..82e170eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java @@ -241,6 +241,10 @@ public interface TypeStage { public interface _FinalStage { CreateUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The ID of the newly created authentication method (automatically generated by the application)

    */ @@ -626,5 +630,17 @@ public CreateUserAuthenticationMethodResponseContent build() { createdAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java index fa39b1af..20cd7844 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java @@ -300,6 +300,10 @@ public interface ConnectionStage { public interface _FinalStage { CreateUserRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The user's email.

    */ @@ -810,5 +814,17 @@ public CreateUserRequestContent build() { username, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java index ce01f531..658d3416 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public CreateUserResponseContent build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java index a6ebb806..617bf31d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java @@ -418,5 +418,15 @@ public CreateVerifiableCredentialTemplateResponseContent build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java index 423b6f53..c242bbf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java @@ -135,6 +135,10 @@ public interface IdStage { public interface _FinalStage { CreateVerificationEmailResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -227,5 +231,17 @@ public _FinalStage createdAt(Optional createdAt) { public CreateVerificationEmailResponseContent build() { return new CreateVerificationEmailResponseContent(status, type, createdAt, id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java index f50986cd..9c6a9978 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { CredentialId build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public CredentialId build() { return new CredentialId(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java index c9be4793..0f22b859 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java @@ -270,6 +270,10 @@ public interface TypeStage { public interface _FinalStage { CustomDomain build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -611,5 +615,17 @@ public CustomDomain build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java index bdf32df7..56af9dbb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java @@ -103,5 +103,15 @@ public Builder addAllDeliveryMethods(List deli public CustomProviderConfiguration build() { return new CustomProviderConfiguration(deliveryMethods, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java index 5a718e79..47cbdc30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java @@ -55,5 +55,15 @@ public Builder from(CustomProviderCredentials other) { public CustomProviderCredentials build() { return new CustomProviderCredentials(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java b/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java index 1b04b9cd..30d7cee0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java @@ -250,6 +250,10 @@ public interface KtyStage { public interface _FinalStage { CustomSigningKeyJwk build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Key identifier

    */ @@ -638,5 +642,17 @@ public CustomSigningKeyJwk build() { return new CustomSigningKeyJwk( kty, kid, use, keyOps, alg, n, e, crv, x, y, x5U, x5C, x5T, x5TS256, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DailyStats.java b/src/main/java/com/auth0/client/mgmt/types/DailyStats.java index 9a941927..9e45ebb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DailyStats.java +++ b/src/main/java/com/auth0/client/mgmt/types/DailyStats.java @@ -249,5 +249,15 @@ public Builder createdAt(String createdAt) { public DailyStats build() { return new DailyStats(date, logins, signups, leakedPasswords, updatedAt, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java index 588640ef..4dd9253e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java @@ -116,5 +116,15 @@ public Builder organizations(TokenQuotaConfiguration organizations) { public DefaultTokenQuota build() { return new DefaultTokenQuota(clients, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java index 5f1777c0..829ea5e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java @@ -130,5 +130,15 @@ public Builder force(com.auth0.client.mgmt.core.Nullable force) { public DeleteActionRequestParameters build() { return new DeleteActionRequestParameters(force, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java index 3a5d3b64..4655b672 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java @@ -77,6 +77,10 @@ public interface IdentifierStage { public interface _FinalStage { DeleteUserBlocksByIdentifierRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage identifier(@NotNull String identifier) { public DeleteUserBlocksByIdentifierRequestParameters build() { return new DeleteUserBlocksByIdentifierRequestParameters(identifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java index 4f2c23fe..4dfd8bb2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java @@ -77,6 +77,10 @@ public interface UserIdStage { public interface _FinalStage { DeleteUserGrantByUserIdRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage userId(@NotNull String userId) { public DeleteUserGrantByUserIdRequestParameters build() { return new DeleteUserGrantByUserIdRequestParameters(userId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java index becb6c2e..ad2e2d19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java @@ -85,7 +85,7 @@ public String getProvider() { } /** - * @return <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise + * @return true if the identity provider is a social provider, falses otherwise */ @JsonProperty("isSocial") public Optional getIsSocial() { @@ -192,8 +192,12 @@ public interface ProviderStage { public interface _FinalStage { DeleteUserIdentityResponseContentItem build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** - *

    <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise

    + *

    true if the identity provider is a social provider, falses otherwise

    */ _FinalStage isSocial(Optional isSocial); @@ -371,7 +375,7 @@ public _FinalStage accessToken(Optional accessToken) { } /** - *

    <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise

    + *

    true if the identity provider is a social provider, falses otherwise

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -381,7 +385,7 @@ public _FinalStage isSocial(Boolean isSocial) { } /** - *

    <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise

    + *

    true if the identity provider is a social provider, falses otherwise

    */ @java.lang.Override @JsonSetter(value = "isSocial", nulls = Nulls.SKIP) @@ -403,5 +407,17 @@ public DeleteUserIdentityResponseContentItem build() { profileData, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java index 5b2c3833..405f0ffb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java @@ -572,5 +572,15 @@ public DeployActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java index c1b9c628..99dd3583 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java @@ -97,5 +97,15 @@ public Builder updateDraft(Boolean updateDraft) { public DeployActionVersionRequestContent build() { return new DeployActionVersionRequestContent(updateDraft, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java index 9dbe98bc..978d962c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java @@ -573,5 +573,15 @@ public DeployActionVersionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java b/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java index 43b299cd..2d411b18 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java @@ -243,5 +243,15 @@ public Builder clientId(String clientId) { public DeviceCredential build() { return new DeviceCredential(id, deviceName, deviceId, type, userId, clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java index 4a51b5ec..7d8d587c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java @@ -246,6 +246,10 @@ public interface UpdatedAtStage { public interface _FinalStage { DirectoryProvisioning build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -508,5 +512,17 @@ public DirectoryProvisioning build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java index b6b111e6..7340637f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java @@ -94,6 +94,10 @@ public interface IdpStage { public interface _FinalStage { DirectoryProvisioningMappingItem build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage idp(@NotNull String idp) { public DirectoryProvisioningMappingItem build() { return new DirectoryProvisioningMappingItem(auth0, idp, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java b/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java index 48fab196..1673b130 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java @@ -177,5 +177,15 @@ public Builder renewsBefore(String renewsBefore) { public DomainCertificate build() { return new DomainCertificate(status, errorMsg, certificateAuthority, renewsBefore, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java b/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java index 1ac0f412..5a1b9e78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java @@ -184,5 +184,15 @@ public Builder lastVerifiedAt(String lastVerifiedAt) { public DomainVerification build() { return new DomainVerification(methods, status, errorMsg, lastVerifiedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java index d3498271..a987492d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java @@ -106,6 +106,10 @@ public interface RecordStage { public interface _FinalStage { DomainVerificationMethod build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The name of the txt record for verification

    */ @@ -178,5 +182,17 @@ public _FinalStage domain(Optional domain) { public DomainVerificationMethod build() { return new DomainVerificationMethod(name, record, domain, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java b/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java index 5e65ffcc..cc817432 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java @@ -202,5 +202,15 @@ public EmailAttribute build() { return new EmailAttribute( identifier, unique, profileRequired, verificationMethod, signup, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java index 2de5fba4..2c6d3469 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java @@ -219,5 +219,15 @@ public Builder smtpUser(String smtpUser) { public EmailProviderCredentials build() { return new EmailProviderCredentials(apiUser, region, smtpHost, smtpPort, smtpUser, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java index aeb41ba3..b544bb48 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java @@ -161,5 +161,15 @@ public EmailProviderCredentialsSchemaAccessKeyId build() { return new EmailProviderCredentialsSchemaAccessKeyId( accessKeyId, secretAccessKey, region, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java index 7b560506..3534d5a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java @@ -152,5 +152,15 @@ public Builder region(EmailMailgunRegionEnum region) { public EmailProviderCredentialsSchemaApiKey build() { return new EmailProviderCredentialsSchemaApiKey(apiKey, domain, region, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java index afd69f78..19f4703c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java @@ -160,5 +160,15 @@ public Builder clientSecret(String clientSecret) { public EmailProviderCredentialsSchemaClientId build() { return new EmailProviderCredentialsSchemaClientId(tenantId, clientId, clientSecret, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java index 92c4c9bf..721af30f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java @@ -99,5 +99,15 @@ public Builder connectionString(String connectionString) { public EmailProviderCredentialsSchemaConnectionString build() { return new EmailProviderCredentialsSchemaConnectionString(connectionString, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java index e32a7d5c..459ee93f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java @@ -185,5 +185,15 @@ public EmailProviderCredentialsSchemaSmtpHost build() { return new EmailProviderCredentialsSchemaSmtpHost( smtpHost, smtpPort, smtpUser, smtpPass, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java index c3c5e07a..c5fa7edd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java @@ -123,5 +123,15 @@ public Builder region(EmailSparkPostRegionEnum region) { public EmailProviderCredentialsSchemaThree build() { return new EmailProviderCredentialsSchemaThree(apiKey, region, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java index 33080049..64a339fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java @@ -77,6 +77,10 @@ public interface ApiKeyStage { public interface _FinalStage { EmailProviderCredentialsSchemaZero build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public EmailProviderCredentialsSchemaZero build() { return new EmailProviderCredentialsSchemaZero(apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java index d3e88daf..0f6dffd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java @@ -200,6 +200,10 @@ public interface UpdatedAtStage { public interface _FinalStage { EncryptionKey build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -412,5 +416,17 @@ public EncryptionKey build() { return new EncryptionKey( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java index daaeb1ec..860e983c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java @@ -76,6 +76,10 @@ public interface ActionIdStage { public interface _FinalStage { EventStreamActionConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage actionId(@NotNull String actionId) { public EventStreamActionConfiguration build() { return new EventStreamActionConfiguration(actionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java index 03ef7d75..3f48dd33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java @@ -85,6 +85,10 @@ public interface ConfigurationStage { public interface _FinalStage { EventStreamActionDestination build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage configuration(@NotNull EventStreamActionConfiguration configu public EventStreamActionDestination build() { return new EventStreamActionDestination(type, configuration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java index a79e6833..d15fc596 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java @@ -271,5 +271,15 @@ public EventStreamActionResponseContent build() { return new EventStreamActionResponseContent( id, name, subscriptions, destination, status, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java index 1bc25e7b..2395092e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java @@ -250,5 +250,15 @@ public Builder data(String data) { public EventStreamCloudEvent build() { return new EventStreamCloudEvent(id, source, specversion, type, time, data, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java index 859ae334..3e55b7e2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java @@ -154,6 +154,10 @@ public interface EventTypeStage { public interface _FinalStage { EventStreamDelivery build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Results of delivery attempts

    */ @@ -288,5 +292,17 @@ public _FinalStage attempts(List attempts) { public EventStreamDelivery build() { return new EventStreamDelivery(id, eventStreamId, status, eventType, attempts, event, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java index cc0d3ade..d8502ab4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java @@ -109,6 +109,10 @@ public interface TimestampStage { public interface _FinalStage { EventStreamDeliveryAttempt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Delivery error message, if applicable

    */ @@ -181,5 +185,17 @@ public _FinalStage errorMessage(Optional errorMessage) { public EventStreamDeliveryAttempt build() { return new EventStreamDeliveryAttempt(status, timestamp, errorMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java index 5605c44a..100c67e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java @@ -109,6 +109,10 @@ public interface AwsRegionStage { public interface _FinalStage { EventStreamEventBridgeConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    AWS Partner Event Source for EventBridge destination.

    */ @@ -182,5 +186,17 @@ public EventStreamEventBridgeConfiguration build() { return new EventStreamEventBridgeConfiguration( awsAccountId, awsRegion, awsPartnerEventSource, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java index 987b30a9..eb5e9aa6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java @@ -85,6 +85,10 @@ public interface ConfigurationStage { public interface _FinalStage { EventStreamEventBridgeDestination build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage configuration(@NotNull EventStreamEventBridgeConfiguration co public EventStreamEventBridgeDestination build() { return new EventStreamEventBridgeDestination(type, configuration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java index 9735a2d1..efb884cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java @@ -272,5 +272,15 @@ public EventStreamEventBridgeResponseContent build() { return new EventStreamEventBridgeResponseContent( id, name, subscriptions, destination, status, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java index 9e50268e..db6fed26 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java @@ -91,5 +91,15 @@ public Builder eventType(String eventType) { public EventStreamSubscription build() { return new EventStreamSubscription(eventType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java index ef2acb6f..f9a0bffb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java @@ -89,6 +89,10 @@ public interface UsernameStage { public interface _FinalStage { EventStreamWebhookBasicAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -132,5 +136,17 @@ public _FinalStage username(@NotNull String username) { public EventStreamWebhookBasicAuth build() { return new EventStreamWebhookBasicAuth(method, username, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java index f54032db..48036387 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java @@ -71,6 +71,10 @@ public interface MethodStage { public interface _FinalStage { EventStreamWebhookBearerAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage method(@NotNull EventStreamWebhookBearerAuthMethodEnum method public EventStreamWebhookBearerAuth build() { return new EventStreamWebhookBearerAuth(method, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java index a3dafb72..2c0760dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java @@ -91,6 +91,10 @@ public interface WebhookAuthorizationStage { public interface _FinalStage { EventStreamWebhookConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -135,5 +139,17 @@ public _FinalStage webhookAuthorization(@NotNull EventStreamWebhookAuthorization public EventStreamWebhookConfiguration build() { return new EventStreamWebhookConfiguration(webhookEndpoint, webhookAuthorization, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java index 16f5f420..345ec706 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java @@ -85,6 +85,10 @@ public interface ConfigurationStage { public interface _FinalStage { EventStreamWebhookDestination build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage configuration(@NotNull EventStreamWebhookConfiguration config public EventStreamWebhookDestination build() { return new EventStreamWebhookDestination(type, configuration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java index f21a19b2..0867fb8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java @@ -271,5 +271,15 @@ public EventStreamWebhookResponseContent build() { return new EventStreamWebhookResponseContent( id, name, subscriptions, destination, status, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java index 9f99ee92..54865823 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java @@ -237,6 +237,10 @@ public interface AdminLoginDomainStage { public interface _FinalStage { ExpressConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    List of client IDs that are linked to this express configuration (e.g. web or mobile clients).

    */ @@ -440,5 +444,17 @@ public ExpressConfiguration build() { oinSubmissionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java index 24fcd7f9..66ad5115 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java @@ -237,6 +237,10 @@ public interface AdminLoginDomainStage { public interface _FinalStage { ExpressConfigurationOrNull build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    List of client IDs that are linked to this express configuration (e.g. web or mobile clients).

    */ @@ -440,5 +444,17 @@ public ExpressConfigurationOrNull build() { oinSubmissionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java index 6997e2fa..62ed2912 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java @@ -55,5 +55,15 @@ public Builder from(ExtensibilityEmailProviderCredentials other) { public ExtensibilityEmailProviderCredentials build() { return new ExtensibilityEmailProviderCredentials(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java b/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java index b9228e67..fa43fb93 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java +++ b/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java @@ -278,5 +278,15 @@ public FederatedConnectionTokenSet build() { return new FederatedConnectionTokenSet( id, connection, scope, expiresAt, issuedAt, lastUsedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java index 31cc8cbc..358edb77 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionActivecampaignListContacts build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionActivecampaignListContacts build() { return new FlowActionActivecampaignListContacts( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java index 92b6b246..f4694b16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionActivecampaignListContactsParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionActivecampaignListContactsParams build() { return new FlowActionActivecampaignListContactsParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java index 251229c9..69a455b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionActivecampaignUpsertContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionActivecampaignUpsertContact build() { return new FlowActionActivecampaignUpsertContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java index 756f1d32..891aac6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java @@ -131,6 +131,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionActivecampaignUpsertContactParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage firstName(Optional firstName); _FinalStage firstName(String firstName); @@ -249,5 +253,17 @@ public FlowActionActivecampaignUpsertContactParams build() { return new FlowActionActivecampaignUpsertContactParams( connectionId, email, firstName, lastName, phone, customFields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java index 4798e813..0ab0ebee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAirtableCreateRecord build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAirtableCreateRecord build() { return new FlowActionAirtableCreateRecord( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java index 1b77ec24..43a01c49 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java @@ -114,6 +114,10 @@ public interface TableNameStage { public interface _FinalStage { FlowActionAirtableCreateRecordParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage fields(Optional> fields); _FinalStage fields(Map fields); @@ -182,5 +186,17 @@ public FlowActionAirtableCreateRecordParams build() { return new FlowActionAirtableCreateRecordParams( connectionId, baseId, tableName, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java index d877cf0b..01af182f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAirtableListRecords build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAirtableListRecords build() { return new FlowActionAirtableListRecords( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java index cf5310d9..139d96be 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java @@ -124,6 +124,10 @@ public interface TableNameStage { public interface _FinalStage { FlowActionAirtableListRecordsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage query(Optional query); _FinalStage query(String query); @@ -212,5 +216,17 @@ public FlowActionAirtableListRecordsParams build() { return new FlowActionAirtableListRecordsParams( connectionId, baseId, tableName, query, view, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java index 49678b61..9e3c0dd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAirtableUpdateRecord build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAirtableUpdateRecord build() { return new FlowActionAirtableUpdateRecord( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java index cc9e72e3..30369848 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java @@ -128,6 +128,10 @@ public interface RecordIdStage { public interface _FinalStage { FlowActionAirtableUpdateRecordParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage fields(Optional> fields); _FinalStage fields(Map fields); @@ -207,5 +211,17 @@ public FlowActionAirtableUpdateRecordParams build() { return new FlowActionAirtableUpdateRecordParams( connectionId, baseId, tableName, recordId, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java index e91bddef..3cc999bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0CreateUser build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0CreateUser build() { return new FlowActionAuth0CreateUser( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java index adee48f4..73cee347 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java @@ -82,6 +82,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionAuth0CreateUserParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage payload(Map payload); _FinalStage putAllPayload(Map payload); @@ -142,5 +146,17 @@ public _FinalStage payload(Map payload) { public FlowActionAuth0CreateUserParams build() { return new FlowActionAuth0CreateUserParams(connectionId, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java index 4cae3a05..b7521ffb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0GetUser build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0GetUser build() { return new FlowActionAuth0GetUser( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java index 6daecbc6..c84dce30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java @@ -82,6 +82,10 @@ public interface UserIdStage { public interface _FinalStage { FlowActionAuth0GetUserParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage userId(@NotNull String userId) { public FlowActionAuth0GetUserParams build() { return new FlowActionAuth0GetUserParams(connectionId, userId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java index 1a443ca5..4a17bdf7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0MakeCall build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0MakeCall build() { return new FlowActionAuth0MakeCall( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java index 0d89ee8f..50981ff9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java @@ -109,6 +109,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionAuth0MakeCallParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage from(Optional from); _FinalStage from(String from); @@ -186,5 +190,17 @@ public _FinalStage from(Optional from) { public FlowActionAuth0MakeCallParams build() { return new FlowActionAuth0MakeCallParams(from, to, message, customVars, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java index ace3b005..1ad48443 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0SendEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0SendEmail build() { return new FlowActionAuth0SendEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java index e5271bfc..747a4280 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java @@ -123,6 +123,10 @@ public interface BodyStage { public interface _FinalStage { FlowActionAuth0SendEmailParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage from(Optional from); _FinalStage from(FlowActionAuth0SendEmailParamsFrom from); @@ -210,5 +214,17 @@ public _FinalStage from(Optional from) { public FlowActionAuth0SendEmailParams build() { return new FlowActionAuth0SendEmailParams(from, to, subject, body, customVars, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java index e887fad6..a409ad55 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java @@ -83,6 +83,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionAuth0SendEmailParamsFrom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -130,5 +134,17 @@ public _FinalStage name(Optional name) { public FlowActionAuth0SendEmailParamsFrom build() { return new FlowActionAuth0SendEmailParamsFrom(name, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java index 64e6c554..19b2eb76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0SendRequest build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0SendRequest build() { return new FlowActionAuth0SendRequest( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java index a8f5fd9a..a42688b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java @@ -130,6 +130,10 @@ public interface PathnameStage { public interface _FinalStage { FlowActionAuth0SendRequestParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage method(Optional method); _FinalStage method(FlowActionAuth0SendRequestParamsMethod method); @@ -252,5 +256,17 @@ public FlowActionAuth0SendRequestParams build() { return new FlowActionAuth0SendRequestParams( connectionId, pathname, method, headers, params, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java index 75c16791..17334358 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0SendSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0SendSms build() { return new FlowActionAuth0SendSms( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java index a5b2953b..42082e00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java @@ -109,6 +109,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionAuth0SendSmsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage from(Optional from); _FinalStage from(String from); @@ -186,5 +190,17 @@ public _FinalStage from(Optional from) { public FlowActionAuth0SendSmsParams build() { return new FlowActionAuth0SendSmsParams(from, to, message, customVars, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java index ac86cc35..17d7f050 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0UpdateUser build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0UpdateUser build() { return new FlowActionAuth0UpdateUser( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java index 3d81255d..73c8e2a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java @@ -94,6 +94,10 @@ public interface UserIdStage { public interface _FinalStage { FlowActionAuth0UpdateUserParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage changes(Map changes); _FinalStage putAllChanges(Map changes); @@ -164,5 +168,17 @@ public _FinalStage changes(Map changes) { public FlowActionAuth0UpdateUserParams build() { return new FlowActionAuth0UpdateUserParams(connectionId, userId, changes, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java index 71f00d10..27e319fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionBigqueryInsertRows build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionBigqueryInsertRows build() { return new FlowActionBigqueryInsertRows( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java index 1dd56cd7..64090d98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java @@ -114,6 +114,10 @@ public interface TableIdStage { public interface _FinalStage { FlowActionBigqueryInsertRowsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage data(Optional> data); _FinalStage data(Map data); @@ -181,5 +185,17 @@ public _FinalStage data(Optional> data) { public FlowActionBigqueryInsertRowsParams build() { return new FlowActionBigqueryInsertRowsParams(connectionId, datasetId, tableId, data, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java index c155b690..86e3074d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionClearbitFindCompany build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionClearbitFindCompany build() { return new FlowActionClearbitFindCompany( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java index de83605e..74b4ac56 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java @@ -84,6 +84,10 @@ public interface DomainStage { public interface _FinalStage { FlowActionClearbitFindCompanyParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage domain(@NotNull String domain) { public FlowActionClearbitFindCompanyParams build() { return new FlowActionClearbitFindCompanyParams(connectionId, domain, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java index e56f6359..5e21fb78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionClearbitFindPerson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionClearbitFindPerson build() { return new FlowActionClearbitFindPerson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java index 8c4cb50f..e915fd15 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionClearbitFindPersonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionClearbitFindPersonParams build() { return new FlowActionClearbitFindPersonParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java index 3c52ff4d..447db61c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionEmailVerifyEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionEmailVerifyEmail build() { return new FlowActionEmailVerifyEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java index 8a171445..a9ed3a72 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionEmailVerifyEmailParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage rules(Optional rules); _FinalStage rules(FlowActionEmailVerifyEmailParamsRules rules); @@ -131,5 +135,17 @@ public _FinalStage rules(Optional rules) public FlowActionEmailVerifyEmailParams build() { return new FlowActionEmailVerifyEmailParams(email, rules, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java index 77655741..57806ac0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java @@ -228,5 +228,15 @@ public FlowActionEmailVerifyEmailParamsRules build() { allowlist, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java index 8126646e..3f7d4da8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowBooleanCondition build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowBooleanCondition build() { return new FlowActionFlowBooleanCondition( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java index 43db6943..aab092b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java @@ -118,5 +118,15 @@ public Builder else_(List else_) { public FlowActionFlowBooleanConditionParams build() { return new FlowActionFlowBooleanConditionParams(then, else_, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java index 3b6c984a..3d7cc9ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowDelayFlow build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowDelayFlow build() { return new FlowActionFlowDelayFlow( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java index ba1cb36c..6a70692e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java @@ -84,6 +84,10 @@ public interface NumberStage { public interface _FinalStage { FlowActionFlowDelayFlowParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage units(Optional units); _FinalStage units(FlowActionFlowDelayFlowParamsUnits units); @@ -131,5 +135,17 @@ public _FinalStage units(Optional units) { public FlowActionFlowDelayFlowParams build() { return new FlowActionFlowDelayFlowParams(number, units, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java index 3823534b..7680d7c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java @@ -144,6 +144,10 @@ public interface ActionStage { public interface _FinalStage { FlowActionFlowDoNothing build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -272,5 +276,17 @@ public FlowActionFlowDoNothing build() { return new FlowActionFlowDoNothing( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java index 35a08cb4..759695de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java @@ -55,5 +55,15 @@ public Builder from(FlowActionFlowDoNothingParams other) { public FlowActionFlowDoNothingParams build() { return new FlowActionFlowDoNothingParams(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java index 12489992..b38081f3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowErrorMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowErrorMessage build() { return new FlowActionFlowErrorMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java index 0628fae3..3ea7f28d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java @@ -70,6 +70,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionFlowErrorMessageParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage message(@NotNull String message) { public FlowActionFlowErrorMessageParams build() { return new FlowActionFlowErrorMessageParams(message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java index d795d9c1..f47dd50a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowMapValue build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowMapValue build() { return new FlowActionFlowMapValue( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java index 850feaf7..2c82a829 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java @@ -93,6 +93,10 @@ public interface InputStage { public interface _FinalStage { FlowActionFlowMapValueParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage cases(Optional> cases); _FinalStage cases(Map cases); @@ -160,5 +164,17 @@ public _FinalStage cases(Optional> cases) { public FlowActionFlowMapValueParams build() { return new FlowActionFlowMapValueParams(input, cases, fallback, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java index d63a5800..aedd01f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowReturnJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowReturnJson build() { return new FlowActionFlowReturnJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java index c80f080f..d3ea0360 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java @@ -71,6 +71,10 @@ public interface PayloadStage { public interface _FinalStage { FlowActionFlowReturnJsonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage payload(@NotNull FlowActionFlowReturnJsonParamsPayload payloa public FlowActionFlowReturnJsonParams build() { return new FlowActionFlowReturnJsonParams(payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java index c9edef5c..caffc4d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowStoreVars build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowStoreVars build() { return new FlowActionFlowStoreVars( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java index 41ccaa29..ea2a2ed3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java @@ -101,5 +101,15 @@ public Builder vars(String key, Object value) { public FlowActionFlowStoreVarsParams build() { return new FlowActionFlowStoreVarsParams(vars, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java index 7d0da1d8..9797ab0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionGoogleSheetsAddRow build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionGoogleSheetsAddRow build() { return new FlowActionGoogleSheetsAddRow( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java index 38924b19..55255da4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java @@ -112,6 +112,10 @@ public interface SpreadsheetIdStage { public interface _FinalStage { FlowActionGoogleSheetsAddRowParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage sheetId(Optional sheetId); _FinalStage sheetId(FlowActionGoogleSheetsAddRowParamsSheetId sheetId); @@ -190,5 +194,17 @@ public FlowActionGoogleSheetsAddRowParams build() { return new FlowActionGoogleSheetsAddRowParams( connectionId, spreadsheetId, sheetId, values, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java index e217ae63..b8957ba4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHttpSendRequest build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHttpSendRequest build() { return new FlowActionHttpSendRequest( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java index b239b21f..09220e31 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java @@ -154,6 +154,10 @@ public interface UrlStage { public interface _FinalStage { FlowActionHttpSendRequestParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage connectionId(Optional connectionId); _FinalStage connectionId(String connectionId); @@ -326,5 +330,17 @@ public FlowActionHttpSendRequestParams build() { return new FlowActionHttpSendRequestParams( connectionId, url, method, headers, basic, params, payload, contentType, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java index fae9be90..016c98d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java @@ -115,5 +115,15 @@ public Builder password(String password) { public FlowActionHttpSendRequestParamsBasicAuth build() { return new FlowActionHttpSendRequestParamsBasicAuth(username, password, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java index e38661ce..d6e8d50e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHubspotEnrollContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHubspotEnrollContact build() { return new FlowActionHubspotEnrollContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java index aa276944..32582bd1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java @@ -101,6 +101,10 @@ public interface WorkflowIdStage { public interface _FinalStage { FlowActionHubspotEnrollContactParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -149,5 +153,17 @@ public _FinalStage workflowId(@NotNull FlowActionHubspotEnrollContactParamsWorkf public FlowActionHubspotEnrollContactParams build() { return new FlowActionHubspotEnrollContactParams(connectionId, email, workflowId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java index 295c03df..29196f96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHubspotGetContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHubspotGetContact build() { return new FlowActionHubspotGetContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java index 40b57593..6f4ddab4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java @@ -83,6 +83,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionHubspotGetContactParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionHubspotGetContactParams build() { return new FlowActionHubspotGetContactParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java index 1fb7f3dd..98fd3be9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHubspotUpsertContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHubspotUpsertContact build() { return new FlowActionHubspotUpsertContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java index 8546cd86..87ebfc06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java @@ -101,6 +101,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionHubspotUpsertContactParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage properties(Optional> properties); _FinalStage properties(List properties); @@ -158,5 +162,17 @@ public _FinalStage properties(Optional additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java index bb07959c..79a1d947 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java @@ -71,6 +71,10 @@ public interface PropertyStage { public interface _FinalStage { FlowActionHubspotUpsertContactParamsProperty build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage property(@NotNull String property) { public FlowActionHubspotUpsertContactParamsProperty build() { return new FlowActionHubspotUpsertContactParamsProperty(property, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java index 35aaddc5..896fe1cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJsonCreateJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJsonCreateJson build() { return new FlowActionJsonCreateJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java index 0bd6dd71..e19ff18e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java @@ -101,5 +101,15 @@ public Builder object(String key, Object value) { public FlowActionJsonCreateJsonParams build() { return new FlowActionJsonCreateJsonParams(object, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java index fe5ac210..62ed9bb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJsonParseJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJsonParseJson build() { return new FlowActionJsonParseJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java index 6f743bdf..28162e90 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java @@ -70,6 +70,10 @@ public interface JsonStage { public interface _FinalStage { FlowActionJsonParseJsonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage json(@NotNull String json) { public FlowActionJsonParseJsonParams build() { return new FlowActionJsonParseJsonParams(json, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java index 2d2fbf4e..2f0d22c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJsonSerializeJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJsonSerializeJson build() { return new FlowActionJsonSerializeJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java index 2bea64bc..d26f3013 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java @@ -71,6 +71,10 @@ public interface ObjectStage { public interface _FinalStage { FlowActionJsonSerializeJsonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage object(@NotNull FlowActionJsonSerializeJsonParamsObject objec public FlowActionJsonSerializeJsonParams build() { return new FlowActionJsonSerializeJsonParams(object, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java index 784d1111..8a7a03d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJwtDecodeJwt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJwtDecodeJwt build() { return new FlowActionJwtDecodeJwt( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java index 22f6e8c8..29e6e3c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java @@ -70,6 +70,10 @@ public interface TokenStage { public interface _FinalStage { FlowActionJwtDecodeJwtParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage token(@NotNull String token) { public FlowActionJwtDecodeJwtParams build() { return new FlowActionJwtDecodeJwtParams(token, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java index 388e5dc6..ca296d7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJwtSignJwt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJwtSignJwt build() { return new FlowActionJwtSignJwt( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java index 5ad50184..8bf215ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java @@ -125,6 +125,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionJwtSignJwtParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage payload(Optional> payload); _FinalStage payload(Map payload); @@ -253,5 +257,17 @@ public FlowActionJwtSignJwtParams build() { return new FlowActionJwtSignJwtParams( connectionId, payload, subject, issuer, audience, expiresIn, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java index 43db2a25..4348488c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJwtVerifyJwt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJwtVerifyJwt build() { return new FlowActionJwtVerifyJwt( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java index 07475c20..dc30d0a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java @@ -109,6 +109,10 @@ public interface TokenStage { public interface _FinalStage { FlowActionJwtVerifyJwtParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage audience(Optional audience); _FinalStage audience(String audience); @@ -186,5 +190,17 @@ public _FinalStage audience(Optional audience) { public FlowActionJwtVerifyJwtParams build() { return new FlowActionJwtVerifyJwtParams(connectionId, token, audience, issuer, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java index 904c3ff7..65c3a614 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionMailchimpUpsertMember build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionMailchimpUpsertMember build() { return new FlowActionMailchimpUpsertMember( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java index c4bc155d..73f29a92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java @@ -99,6 +99,10 @@ public interface MemberStage { public interface _FinalStage { FlowActionMailchimpUpsertMemberParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage member(@NotNull FlowActionMailchimpUpsertMemberParamsMember m public FlowActionMailchimpUpsertMemberParams build() { return new FlowActionMailchimpUpsertMemberParams(connectionId, listId, member, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java index e69b9a8d..f6b9a0d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java @@ -100,6 +100,10 @@ public interface StatusIfNewStage { public interface _FinalStage { FlowActionMailchimpUpsertMemberParamsMember build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage mergeFields(Optional> mergeFields); _FinalStage mergeFields(Map mergeFields); @@ -158,5 +162,17 @@ public FlowActionMailchimpUpsertMemberParamsMember build() { return new FlowActionMailchimpUpsertMemberParamsMember( emailAddress, statusIfNew, mergeFields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java index ebb26785..d51ce0c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionMailjetSendEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionMailjetSendEmail build() { return new FlowActionMailjetSendEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java index a6babc07..38351e22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java @@ -71,6 +71,10 @@ public interface ContentStage { public interface _FinalStage { FlowActionMailjetSendEmailParamsContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage content(@NotNull String content) { public FlowActionMailjetSendEmailParamsContent build() { return new FlowActionMailjetSendEmailParamsContent(content, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java index 271928a0..d1e8e26d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java @@ -82,6 +82,10 @@ public interface TemplateIdStage { public interface _FinalStage { FlowActionMailjetSendEmailParamsTemplateId build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage variables(Optional> variables); _FinalStage variables(Map variables); @@ -129,5 +133,17 @@ public _FinalStage variables(Optional> variables) { public FlowActionMailjetSendEmailParamsTemplateId build() { return new FlowActionMailjetSendEmailParamsTemplateId(templateId, variables, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java index 529d08b3..c7ecb840 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionOtpGenerateCode build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionOtpGenerateCode build() { return new FlowActionOtpGenerateCode( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java index dde8d51e..c471e23d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java @@ -82,6 +82,10 @@ public interface LengthStage { public interface _FinalStage { FlowActionOtpGenerateCodeParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage length(int length) { public FlowActionOtpGenerateCodeParams build() { return new FlowActionOtpGenerateCodeParams(reference, length, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java index 13024d0a..e673f708 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionOtpVerifyCode build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionOtpVerifyCode build() { return new FlowActionOtpVerifyCode( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java index c1640f8d..0de73f95 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java @@ -83,6 +83,10 @@ public interface CodeStage { public interface _FinalStage { FlowActionOtpVerifyCodeParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage code(@NotNull FlowActionOtpVerifyCodeParamsCode code) { public FlowActionOtpVerifyCodeParams build() { return new FlowActionOtpVerifyCodeParams(reference, code, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java index c39e9d87..e9be4627 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionPipedriveAddDeal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionPipedriveAddDeal build() { return new FlowActionPipedriveAddDeal( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java index 86d44f91..6bb27a0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java @@ -157,6 +157,10 @@ public interface TitleStage { public interface _FinalStage { FlowActionPipedriveAddDealParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage value(Optional value); _FinalStage value(String value); @@ -323,5 +327,17 @@ public FlowActionPipedriveAddDealParams build() { fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java index efa685eb..a73f9008 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionPipedriveAddOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionPipedriveAddOrganization build() { return new FlowActionPipedriveAddOrganization( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java index cd4e7986..a6a0c10f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java @@ -110,6 +110,10 @@ public interface NameStage { public interface _FinalStage { FlowActionPipedriveAddOrganizationParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage ownerId(Optional ownerId); _FinalStage ownerId(FlowActionPipedriveAddOrganizationParamsOwnerId ownerId); @@ -188,5 +192,17 @@ public FlowActionPipedriveAddOrganizationParams build() { return new FlowActionPipedriveAddOrganizationParams( connectionId, name, ownerId, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java index 2763a1a9..a33c2897 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionPipedriveAddPerson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionPipedriveAddPerson build() { return new FlowActionPipedriveAddPerson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java index 27226c9c..414607c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java @@ -141,6 +141,10 @@ public interface NameStage { public interface _FinalStage { FlowActionPipedriveAddPersonParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage email(Optional email); _FinalStage email(String email); @@ -279,5 +283,17 @@ public FlowActionPipedriveAddPersonParams build() { return new FlowActionPipedriveAddPersonParams( connectionId, name, email, phone, ownerId, organizationId, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java index 645538f8..479522f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceCreateLead build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceCreateLead build() { return new FlowActionSalesforceCreateLead( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java index 65a1ab1e..d5023bf5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java @@ -145,6 +145,10 @@ public interface CompanyStage { public interface _FinalStage { FlowActionSalesforceCreateLeadParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage firstName(Optional firstName); _FinalStage firstName(String firstName); @@ -273,5 +277,17 @@ public FlowActionSalesforceCreateLeadParams build() { return new FlowActionSalesforceCreateLeadParams( connectionId, firstName, lastName, company, email, phone, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java index 5b2b9ee4..c99ce4d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceGetLead build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceGetLead build() { return new FlowActionSalesforceGetLead( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java index e6cd077f..865d073b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java @@ -83,6 +83,10 @@ public interface LeadIdStage { public interface _FinalStage { FlowActionSalesforceGetLeadParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage leadId(@NotNull String leadId) { public FlowActionSalesforceGetLeadParams build() { return new FlowActionSalesforceGetLeadParams(connectionId, leadId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java index 4108cfa4..87899c47 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceSearchLeads build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceSearchLeads build() { return new FlowActionSalesforceSearchLeads( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java index aedef7c4..3feece47 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java @@ -115,6 +115,10 @@ public interface SearchValueStage { public interface _FinalStage { FlowActionSalesforceSearchLeadsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage leadFields(List leadFields); _FinalStage addLeadFields(String leadFields); @@ -196,5 +200,17 @@ public FlowActionSalesforceSearchLeadsParams build() { return new FlowActionSalesforceSearchLeadsParams( connectionId, searchField, searchValue, leadFields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java index 59d38ff5..2801a5a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceUpdateLead build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceUpdateLead build() { return new FlowActionSalesforceUpdateLead( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java index 1cbcaf10..ffdf1f3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java @@ -98,6 +98,10 @@ public interface LeadIdStage { public interface _FinalStage { FlowActionSalesforceUpdateLeadParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage payload(Optional> payload); _FinalStage payload(Map payload); @@ -155,5 +159,17 @@ public _FinalStage payload(Optional> payload) { public FlowActionSalesforceUpdateLeadParams build() { return new FlowActionSalesforceUpdateLeadParams(connectionId, leadId, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java index 774a33e0..2adb9a87 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSendgridSendEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSendgridSendEmail build() { return new FlowActionSendgridSendEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java index 6fed0ff6..b1397a0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java @@ -100,6 +100,10 @@ public interface FromStage { public interface _FinalStage { FlowActionSendgridSendEmailParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage personalizations(List personalizations); _FinalStage addPersonalizations(Object personalizations); @@ -170,5 +174,17 @@ public _FinalStage personalizations(List personalizations) { public FlowActionSendgridSendEmailParams build() { return new FlowActionSendgridSendEmailParams(connectionId, from, personalizations, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java index 17c898bc..9ebdf3a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java @@ -83,6 +83,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionSendgridSendEmailParamsPerson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -130,5 +134,17 @@ public _FinalStage name(Optional name) { public FlowActionSendgridSendEmailParamsPerson build() { return new FlowActionSendgridSendEmailParamsPerson(name, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java index bdeaea8a..296ead47 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSlackPostMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSlackPostMessage build() { return new FlowActionSlackPostMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java index 06aa70c0..750c20ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java @@ -96,6 +96,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionSlackPostMessageParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage text(Optional text); _FinalStage text(String text); @@ -163,5 +167,17 @@ public _FinalStage text(Optional text) { public FlowActionSlackPostMessageParams build() { return new FlowActionSlackPostMessageParams(connectionId, text, attachments, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java index ab9ae9ba..221ecc75 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java @@ -167,5 +167,15 @@ public Builder fields(List fiel public FlowActionSlackPostMessageParamsAttachment build() { return new FlowActionSlackPostMessageParamsAttachment(color, pretext, text, fields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java index 51cacf5e..742d22bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java @@ -91,6 +91,10 @@ public interface TitleStage { public interface _FinalStage { FlowActionSlackPostMessageParamsAttachmentField build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage value(Optional value); _FinalStage value(String value); @@ -158,5 +162,17 @@ public _FinalStage value(Optional value) { public FlowActionSlackPostMessageParamsAttachmentField build() { return new FlowActionSlackPostMessageParamsAttachmentField(title, value, short_, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java index e22887a1..23df1d20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeAddTaxId build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeAddTaxId build() { return new FlowActionStripeAddTaxId( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java index dd86ca00..618d4be1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java @@ -114,6 +114,10 @@ public interface ValueStage { public interface _FinalStage { FlowActionStripeAddTaxIdParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -173,5 +177,17 @@ public _FinalStage value(@NotNull String value) { public FlowActionStripeAddTaxIdParams build() { return new FlowActionStripeAddTaxIdParams(connectionId, customerId, type, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java index f4eabdc3..11c5445b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java @@ -213,5 +213,15 @@ public Builder country(String country) { public FlowActionStripeAddress build() { return new FlowActionStripeAddress(line1, line2, postalCode, city, state, country, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java index 0197479b..0ea0f38b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeCreateCustomer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeCreateCustomer build() { return new FlowActionStripeCreateCustomer( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java index bf853a78..afe104d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java @@ -165,6 +165,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionStripeCreateCustomerParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage taxId(Optional taxId); _FinalStage taxId(FlowActionStripeTaxId taxId); @@ -362,5 +366,17 @@ public FlowActionStripeCreateCustomerParams build() { metadata, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java index 1d0eda5a..0d6b3d01 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeCreatePortalSession build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionStripeCreatePortalSession build() { return new FlowActionStripeCreatePortalSession( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java index 77748d77..56d38942 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java @@ -100,6 +100,10 @@ public interface CustomerIdStage { public interface _FinalStage { FlowActionStripeCreatePortalSessionParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage returnUrl(Optional returnUrl); _FinalStage returnUrl(String returnUrl); @@ -158,5 +162,17 @@ public FlowActionStripeCreatePortalSessionParams build() { return new FlowActionStripeCreatePortalSessionParams( connectionId, customerId, returnUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java index f15b38b3..24e522fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeDeleteTaxId build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeDeleteTaxId build() { return new FlowActionStripeDeleteTaxId( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java index f180442c..ea9469f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java @@ -95,6 +95,10 @@ public interface IdStage { public interface _FinalStage { FlowActionStripeDeleteTaxIdParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -143,5 +147,17 @@ public _FinalStage id(@NotNull String id) { public FlowActionStripeDeleteTaxIdParams build() { return new FlowActionStripeDeleteTaxIdParams(connectionId, customerId, id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java index f7042b97..66587598 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeFindCustomers build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeFindCustomers build() { return new FlowActionStripeFindCustomers( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java index 3d72d5a6..aa4210bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionStripeFindCustomersParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionStripeFindCustomersParams build() { return new FlowActionStripeFindCustomersParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java index c098931f..e9b93716 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeGetCustomer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeGetCustomer build() { return new FlowActionStripeGetCustomer( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java index 0964cf72..b5dff975 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java @@ -83,6 +83,10 @@ public interface IdStage { public interface _FinalStage { FlowActionStripeGetCustomerParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage id(@NotNull String id) { public FlowActionStripeGetCustomerParams build() { return new FlowActionStripeGetCustomerParams(connectionId, id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java index 195ec682..6a42281e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java @@ -82,6 +82,10 @@ public interface ValueStage { public interface _FinalStage { FlowActionStripeTaxId build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage value(@NotNull String value) { public FlowActionStripeTaxId build() { return new FlowActionStripeTaxId(type, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java index e9c46e57..449d2733 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeUpdateCustomer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeUpdateCustomer build() { return new FlowActionStripeUpdateCustomer( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java index 8e48c250..9fceb496 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java @@ -169,6 +169,10 @@ public interface IdStage { public interface _FinalStage { FlowActionStripeUpdateCustomerParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -356,5 +360,17 @@ public FlowActionStripeUpdateCustomerParams build() { metadata, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java index 830f7a3a..de86eaf8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionTelegramSendMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionTelegramSendMessage build() { return new FlowActionTelegramSendMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java index d33f13ad..09e184e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java @@ -96,6 +96,10 @@ public interface TextStage { public interface _FinalStage { FlowActionTelegramSendMessageParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage text(@NotNull String text) { public FlowActionTelegramSendMessageParams build() { return new FlowActionTelegramSendMessageParams(connectionId, chatId, text, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java index 207c1138..df53347c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionTwilioMakeCall build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionTwilioMakeCall build() { return new FlowActionTwilioMakeCall( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java index 8d4aa1b6..93381856 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java @@ -110,6 +110,10 @@ public interface PayloadStage { public interface _FinalStage { FlowActionTwilioMakeCallParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -168,5 +172,17 @@ public _FinalStage payload(@NotNull String payload) { public FlowActionTwilioMakeCallParams build() { return new FlowActionTwilioMakeCallParams(connectionId, from, to, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java index 41f18328..71f442ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionTwilioSendSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionTwilioSendSms build() { return new FlowActionTwilioSendSms( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java index 0cce55f3..524c6fd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java @@ -110,6 +110,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionTwilioSendSmsParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -168,5 +172,17 @@ public _FinalStage message(@NotNull String message) { public FlowActionTwilioSendSmsParams build() { return new FlowActionTwilioSendSmsParams(connectionId, from, to, message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java index e421ed46..ebbf447e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionWhatsappSendMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionWhatsappSendMessage build() { return new FlowActionWhatsappSendMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java index 18fd4467..4f6d09c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java @@ -129,6 +129,10 @@ public interface PayloadStage { public interface _FinalStage { FlowActionWhatsappSendMessageParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -199,5 +203,17 @@ public FlowActionWhatsappSendMessageParams build() { return new FlowActionWhatsappSendMessageParams( connectionId, senderId, recipientNumber, type, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java index da78abd1..b6d2cacc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionXmlParseXml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionXmlParseXml build() { return new FlowActionXmlParseXml( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java index 9c97b531..9420bf1e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java @@ -70,6 +70,10 @@ public interface XmlStage { public interface _FinalStage { FlowActionXmlParseXmlParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage xml(@NotNull String xml) { public FlowActionXmlParseXmlParams build() { return new FlowActionXmlParseXmlParams(xml, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java index 2d5a8d55..f5891e82 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionXmlSerializeXml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionXmlSerializeXml build() { return new FlowActionXmlSerializeXml( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java index f061b36a..7b82a989 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java @@ -71,6 +71,10 @@ public interface ObjectStage { public interface _FinalStage { FlowActionXmlSerializeXmlParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage object(@NotNull FlowActionXmlSerializeXmlParamsObject object) public FlowActionXmlSerializeXmlParams build() { return new FlowActionXmlSerializeXmlParams(object, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java index aee497b8..478d143e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionZapierTriggerWebhook build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionZapierTriggerWebhook build() { return new FlowActionZapierTriggerWebhook( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java index 1a30886e..59042adc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java @@ -85,6 +85,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionZapierTriggerWebhookParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage method(Optional method); _FinalStage method(FlowActionZapierTriggerWebhookParamsMethod method); @@ -132,5 +136,17 @@ public _FinalStage method(Optional m public FlowActionZapierTriggerWebhookParams build() { return new FlowActionZapierTriggerWebhookParams(connectionId, method, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java index 0f85945d..337c9f3f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java @@ -209,6 +209,10 @@ public interface UpdatedAtStage { public interface _FinalStage { FlowExecutionSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Journey id

    */ @@ -393,5 +397,17 @@ public FlowExecutionSummary build() { return new FlowExecutionSummary( id, traceId, journeyId, status, createdAt, updatedAt, startedAt, endedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java index ad5d7050..cb1e6c1c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java @@ -128,6 +128,10 @@ public interface UpdatedAtStage { public interface _FinalStage { FlowSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage executedAt(Optional executedAt); _FinalStage executedAt(String executedAt); @@ -205,5 +209,17 @@ public _FinalStage executedAt(Optional executedAt) { public FlowSummary build() { return new FlowSummary(id, name, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java index 354c61ff..dd5cd632 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java @@ -83,6 +83,10 @@ public interface ApiKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public FlowsVaultConnectioSetupApiKey build() { return new FlowsVaultConnectioSetupApiKey(type, apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java index c7010970..6eb249cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java @@ -99,6 +99,10 @@ public interface BaseUrlStage { public interface _FinalStage { FlowsVaultConnectioSetupApiKeyWithBaseUrl build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage baseUrl(@NotNull String baseUrl) { public FlowsVaultConnectioSetupApiKeyWithBaseUrl build() { return new FlowsVaultConnectioSetupApiKeyWithBaseUrl(type, apiKey, baseUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java index 073ee9fd..42cf1e1f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java @@ -167,5 +167,15 @@ public FlowsVaultConnectioSetupBigqueryOauthJwt build() { return new FlowsVaultConnectioSetupBigqueryOauthJwt( type, projectId, privateKey, clientEmail, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java index 9164e4ff..efc891cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java @@ -84,6 +84,10 @@ public interface TokenStage { public interface _FinalStage { FlowsVaultConnectioSetupHttpBearer build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage token(@NotNull String token) { public FlowsVaultConnectioSetupHttpBearer build() { return new FlowsVaultConnectioSetupHttpBearer(type, token, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java index 729e31b1..8793506b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java @@ -85,6 +85,10 @@ public interface AlgorithmStage { public interface _FinalStage { FlowsVaultConnectioSetupJwt build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage algorithm(@NotNull FlowsVaultConnectioSetupJwtAlgorithmEnum a public FlowsVaultConnectioSetupJwt build() { return new FlowsVaultConnectioSetupJwt(type, algorithm, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java index b356f3cf..acc0d614 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java @@ -99,6 +99,10 @@ public interface SecretKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupMailjetApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage secretKey(@NotNull String secretKey) { public FlowsVaultConnectioSetupMailjetApiKey build() { return new FlowsVaultConnectioSetupMailjetApiKey(type, apiKey, secretKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java index a877c37d..3385e9d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java @@ -127,6 +127,10 @@ public interface DomainStage { public interface _FinalStage { FlowsVaultConnectioSetupOauthApp build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage audience(Optional audience); _FinalStage audience(String audience); @@ -205,5 +209,17 @@ public FlowsVaultConnectioSetupOauthApp build() { return new FlowsVaultConnectioSetupOauthApp( type, clientId, clientSecret, domain, audience, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java index b130fead..7066bd20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java @@ -116,5 +116,15 @@ public Builder code(String code) { public FlowsVaultConnectioSetupOauthCode build() { return new FlowsVaultConnectioSetupOauthCode(type, code, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java index 1e7d8184..b0726829 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java @@ -84,6 +84,10 @@ public interface SecretKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupSecretApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage secretKey(@NotNull String secretKey) { public FlowsVaultConnectioSetupSecretApiKey build() { return new FlowsVaultConnectioSetupSecretApiKey(type, secretKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java index 0c875194..218e1a4e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java @@ -99,6 +99,10 @@ public interface PublicKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupStripeKeyPair build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage publicKey(@NotNull String publicKey) { public FlowsVaultConnectioSetupStripeKeyPair build() { return new FlowsVaultConnectioSetupStripeKeyPair(type, privateKey, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java index 39c9aee8..c37327f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java @@ -83,6 +83,10 @@ public interface TokenStage { public interface _FinalStage { FlowsVaultConnectioSetupToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage token(@NotNull String token) { public FlowsVaultConnectioSetupToken build() { return new FlowsVaultConnectioSetupToken(type, token, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java index fbdb0848..d03c14c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java @@ -99,6 +99,10 @@ public interface ApiKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupTwilioApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public FlowsVaultConnectioSetupTwilioApiKey build() { return new FlowsVaultConnectioSetupTwilioApiKey(type, accountId, apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java index 8d2c5c85..007062ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java @@ -83,6 +83,10 @@ public interface UrlStage { public interface _FinalStage { FlowsVaultConnectioSetupWebhook build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage url(@NotNull String url) { public FlowsVaultConnectioSetupWebhook build() { return new FlowsVaultConnectioSetupWebhook(type, url, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java index 3e593b90..b4472b21 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java @@ -112,6 +112,10 @@ public interface InStage { public interface _FinalStage { FlowsVaultConnectionHttpApiKeySetup build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -170,5 +174,17 @@ public _FinalStage in(@NotNull FlowsVaultConnectionHttpApiKeySetupInEnum in) { public FlowsVaultConnectionHttpApiKeySetup build() { return new FlowsVaultConnectionHttpApiKeySetup(type, name, value, in, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java index 82ec482d..d9c50d06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java @@ -98,6 +98,10 @@ public interface UsernameStage { public interface _FinalStage { FlowsVaultConnectionHttpBasicAuthSetup build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage password(Optional password); _FinalStage password(String password); @@ -155,5 +159,17 @@ public _FinalStage password(Optional password) { public FlowsVaultConnectionHttpBasicAuthSetup build() { return new FlowsVaultConnectionHttpBasicAuthSetup(type, username, password, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java index 83c55fb0..56ba6425 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java @@ -155,6 +155,10 @@ public interface TokenEndpointStage { public interface _FinalStage { FlowsVaultConnectionHttpOauthClientCredentialsSetup build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage audience(Optional audience); _FinalStage audience(String audience); @@ -274,5 +278,17 @@ public FlowsVaultConnectionHttpOauthClientCredentialsSetup build() { return new FlowsVaultConnectionHttpOauthClientCredentialsSetup( type, clientId, clientSecret, tokenEndpoint, audience, resource, scope, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java index 5aad4800..ae3c4a6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java @@ -231,6 +231,10 @@ public interface FingerprintStage { public interface _FinalStage { FlowsVaultConnectionSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection custom account name.

    */ @@ -426,5 +430,17 @@ public FlowsVaultConnectionSummary build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java index 796a042e..589f3cd4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockDivider build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockDividerConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockDivider build() { return new FormBlockDivider(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java index a5183c3a..72d562d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java @@ -91,5 +91,15 @@ public Builder text(String text) { public FormBlockDividerConfig build() { return new FormBlockDividerConfig(text, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java index 5852cc83..49c87f73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockHtml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockHtmlConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockHtml build() { return new FormBlockHtml(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java index 1a3622c5..428c065b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java @@ -91,5 +91,15 @@ public Builder content(String content) { public FormBlockHtmlConfig build() { return new FormBlockHtmlConfig(content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java index 599a369e..4c308d32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockImage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockImageConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockImage build() { return new FormBlockImage(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java index 88372a4b..00b669ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java @@ -93,6 +93,10 @@ public interface SrcStage { public interface _FinalStage { FormBlockImageConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage position(Optional position); _FinalStage position(FormBlockImageConfigPositionEnum position); @@ -160,5 +164,17 @@ public _FinalStage position(Optional position) public FormBlockImageConfig build() { return new FormBlockImageConfig(src, position, height, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java index 80e37187..691203c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockJumpButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockJumpButtonConfig config) { public FormBlockJumpButton build() { return new FormBlockJumpButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java index 9f6282db..773d2f2e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java @@ -97,6 +97,10 @@ public interface NextNodeStage { public interface _FinalStage { FormBlockJumpButtonConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage style(Optional style); _FinalStage style(FormBlockJumpButtonConfigStyle style); @@ -154,5 +158,17 @@ public _FinalStage style(Optional style) { public FormBlockJumpButtonConfig build() { return new FormBlockJumpButtonConfig(text, nextNode, style, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java index ffd73067..fc3905ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java @@ -91,5 +91,15 @@ public Builder backgroundColor(String backgroundColor) { public FormBlockJumpButtonConfigStyle build() { return new FormBlockJumpButtonConfigStyle(backgroundColor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java index 43353c00..8b1a935f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockNextButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockNextButtonConfig config) { public FormBlockNextButton build() { return new FormBlockNextButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java index 6d24c23b..5bfdde9a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java @@ -70,6 +70,10 @@ public interface TextStage { public interface _FinalStage { FormBlockNextButtonConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage text(@NotNull String text) { public FormBlockNextButtonConfig build() { return new FormBlockNextButtonConfig(text, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java index 15cd2208..0209cfd3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockPreviousButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockPreviousButtonConfig config) { public FormBlockPreviousButton build() { return new FormBlockPreviousButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java index 60fb63e5..7f1a1308 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java @@ -70,6 +70,10 @@ public interface TextStage { public interface _FinalStage { FormBlockPreviousButtonConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage text(@NotNull String text) { public FormBlockPreviousButtonConfig build() { return new FormBlockPreviousButtonConfig(text, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java index 1c0e5fb2..dea9f4e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockResendButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockResendButtonConfig config) { public FormBlockResendButton build() { return new FormBlockResendButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java index d899c55c..ad8450c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java @@ -154,6 +154,10 @@ public interface FlowIdStage { public interface _FinalStage { FormBlockResendButtonConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage textAlignment(Optional textAlignment); _FinalStage textAlignment(FormBlockResendButtonConfigTextAlignmentEnum textAlignment); @@ -280,5 +284,17 @@ public FormBlockResendButtonConfig build() { waitingTime, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java index 03b4745a..0f22c3e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockRichText build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockRichTextConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockRichText build() { return new FormBlockRichText(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java index a4986d07..d730ad4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java @@ -91,5 +91,15 @@ public Builder content(String content) { public FormBlockRichTextConfig build() { return new FormBlockRichTextConfig(content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java b/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java index e6e50def..db348065 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java @@ -165,5 +165,15 @@ public Builder resumeFlow(Boolean resumeFlow) { public FormEndingNode build() { return new FormEndingNode(redirection, afterSubmit, coordinates, resumeFlow, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java index 9cb34292..398be08a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java @@ -91,5 +91,15 @@ public Builder flowId(String flowId) { public FormEndingNodeAfterSubmit build() { return new FormEndingNodeAfterSubmit(flowId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java index c7f3601f..d8ffcd9c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java @@ -82,6 +82,10 @@ public interface TargetStage { public interface _FinalStage { FormEndingNodeRedirection build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage delay(Optional delay); _FinalStage delay(Integer delay); @@ -129,5 +133,17 @@ public _FinalStage delay(Optional delay) { public FormEndingNodeRedirection build() { return new FormEndingNodeRedirection(delay, target, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java index 316f02a8..eac8a141 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldBoolean build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldBoolean build() { return new FormFieldBoolean( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java index 6901ba78..132f726d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java @@ -116,5 +116,15 @@ public Builder options(FormFieldBooleanConfigOptions options) { public FormFieldBooleanConfig build() { return new FormFieldBooleanConfig(defaultValue, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java index 4303222f..7ffed4dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java @@ -114,5 +114,15 @@ public Builder false_(String false_) { public FormFieldBooleanConfigOptions build() { return new FormFieldBooleanConfigOptions(true_, false_, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java index 3c7c1a69..ecdbed05 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldCards build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldCardsConfig config); @@ -302,5 +306,17 @@ public FormFieldCards build() { return new FormFieldCards( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java index a526bc8b..987a77aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java @@ -140,5 +140,15 @@ public Builder options(List options) { public FormFieldCardsConfig build() { return new FormFieldCardsConfig(hideLabels, multiple, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java index e85a6cce..1265cab2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java @@ -95,6 +95,10 @@ public interface ImageUrlStage { public interface _FinalStage { FormFieldCardsConfigOption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -143,5 +147,17 @@ public _FinalStage imageUrl(@NotNull String imageUrl) { public FormFieldCardsConfigOption build() { return new FormFieldCardsConfigOption(value, label, imageUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java index 6d6e9197..0620b6e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldChoice build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldChoiceConfig config); @@ -302,5 +306,17 @@ public FormFieldChoice build() { return new FormFieldChoice( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java index 181bab37..ae0f258c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java @@ -140,5 +140,15 @@ public Builder allowOther(FormFieldChoiceConfigAllowOther allowOther) { public FormFieldChoiceConfig build() { return new FormFieldChoiceConfig(multiple, options, allowOther, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java index 49c6d7e8..6ef1dcd9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java @@ -139,5 +139,15 @@ public Builder placeholder(String placeholder) { public FormFieldChoiceConfigAllowOther build() { return new FormFieldChoiceConfigAllowOther(enabled, label, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java index a7b0cf35..fdfbb275 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java @@ -82,6 +82,10 @@ public interface LabelStage { public interface _FinalStage { FormFieldChoiceConfigOption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage label(@NotNull String label) { public FormFieldChoiceConfigOption build() { return new FormFieldChoiceConfigOption(value, label, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java index 7ea82eb7..e1483a13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldCustom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldCustom build() { return new FormFieldCustom( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java index 721e611c..f174c530 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java @@ -106,6 +106,10 @@ public interface CodeStage { public interface _FinalStage { FormFieldCustomConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage schema(Map schema); _FinalStage putAllSchema(Map schema); @@ -206,5 +210,17 @@ public _FinalStage schema(Map schema) { public FormFieldCustomConfig build() { return new FormFieldCustomConfig(schema, code, css, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java index 3bfc154f..f580c85e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldDate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldDate build() { return new FormFieldDate( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java index 11f4bdb3..407b42b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java @@ -116,5 +116,15 @@ public Builder defaultValue(String defaultValue) { public FormFieldDateConfig build() { return new FormFieldDateConfig(format, defaultValue, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java index 1596665e..35513056 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldDropdown build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldDropdownConfig config); @@ -302,5 +306,17 @@ public FormFieldDropdown build() { return new FormFieldDropdown( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java index 5a1efa85..eeb4dbd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java @@ -142,5 +142,15 @@ public Builder placeholder(String placeholder) { public FormFieldDropdownConfig build() { return new FormFieldDropdownConfig(multiple, options, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java index 49965c86..6a6cd20f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java @@ -82,6 +82,10 @@ public interface LabelStage { public interface _FinalStage { FormFieldDropdownConfigOption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage label(@NotNull String label) { public FormFieldDropdownConfigOption build() { return new FormFieldDropdownConfigOption(value, label, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java index 6adb0a4b..e87ab2ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldEmailConfig config); @@ -302,5 +306,17 @@ public FormFieldEmail build() { return new FormFieldEmail( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java index 6cf5817f..05d5e7f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java @@ -114,5 +114,15 @@ public Builder placeholder(String placeholder) { public FormFieldEmailConfig build() { return new FormFieldEmailConfig(defaultValue, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java index 270c8cbb..a5300a19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldFile build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldFileConfig config); @@ -302,5 +306,17 @@ public FormFieldFile build() { return new FormFieldFile( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java index 29a77e1e..f0afdd99 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java @@ -215,5 +215,15 @@ public FormFieldFileConfig build() { return new FormFieldFileConfig( multiple, storage, categories, extensions, maxSize, maxFiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java index 56854c2b..a43de538 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java @@ -71,6 +71,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldFileConfigStorage build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage type(@NotNull FormFieldFileConfigStorageTypeEnum type) { public FormFieldFileConfigStorage build() { return new FormFieldFileConfigStorage(type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java index c25dff2e..cb31941a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldLegal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldLegalConfig config); @@ -302,5 +306,17 @@ public FormFieldLegal build() { return new FormFieldLegal( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java index 482a6c4d..05e6d2be 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java @@ -91,5 +91,15 @@ public Builder text(String text) { public FormFieldLegalConfig build() { return new FormFieldLegalConfig(text, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java index 5da57da1..d83eb1f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldNumber build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldNumberConfig config); @@ -302,5 +306,17 @@ public FormFieldNumber build() { return new FormFieldNumber( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java index 3f25a6c1..69ea60cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java @@ -165,5 +165,15 @@ public Builder maxValue(Double maxValue) { public FormFieldNumberConfig build() { return new FormFieldNumberConfig(defaultValue, placeholder, minValue, maxValue, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java index c680e7cb..5bf3805e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldPassword build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldPassword build() { return new FormFieldPassword( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java index 9c0a9a4d..1430d874 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java @@ -245,5 +245,15 @@ public FormFieldPasswordConfig build() { return new FormFieldPasswordConfig( hash, placeholder, minLength, maxLength, complexity, nist, strengthMeter, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java index 46773133..7b087b87 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldPayment build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldPayment build() { return new FormFieldPayment( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java index e39c92cc..e8b44d90 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java @@ -119,6 +119,10 @@ public interface CredentialsStage { public interface _FinalStage { FormFieldPaymentConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage provider(Optional provider); _FinalStage provider(FormFieldPaymentConfigProviderEnum provider); @@ -216,5 +220,17 @@ public _FinalStage provider(Optional provide public FormFieldPaymentConfig build() { return new FormFieldPaymentConfig(provider, charge, credentials, customer, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java index 8eab8f26..3aa69b5e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java @@ -86,6 +86,10 @@ public interface OneOffStage { public interface _FinalStage { FormFieldPaymentConfigChargeOneOff build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -124,5 +128,17 @@ public _FinalStage oneOff(@NotNull FormFieldPaymentConfigChargeOneOffOneOff oneO public FormFieldPaymentConfigChargeOneOff build() { return new FormFieldPaymentConfigChargeOneOff(type, oneOff, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java index fec66404..1278a918 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java @@ -86,6 +86,10 @@ public interface CurrencyStage { public interface _FinalStage { FormFieldPaymentConfigChargeOneOffOneOff build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -124,5 +128,17 @@ public _FinalStage currency(@NotNull FormFieldPaymentConfigChargeOneOffCurrencyE public FormFieldPaymentConfigChargeOneOffOneOff build() { return new FormFieldPaymentConfigChargeOneOffOneOff(amount, currency, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java index 2f4aeb76..019f2dcf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java @@ -85,6 +85,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldPaymentConfigChargeSubscription build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage subscription(Map subscription); _FinalStage putAllSubscription(Map subscription); @@ -145,5 +149,17 @@ public _FinalStage subscription(Map subscription) { public FormFieldPaymentConfigChargeSubscription build() { return new FormFieldPaymentConfigChargeSubscription(type, subscription, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java index 4bfc3ba1..fdbc395f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java @@ -83,6 +83,10 @@ public interface PrivateKeyStage { public interface _FinalStage { FormFieldPaymentConfigCredentials build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage privateKey(@NotNull String privateKey) { public FormFieldPaymentConfigCredentials build() { return new FormFieldPaymentConfigCredentials(publicKey, privateKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java index e60ac1a8..ce73936c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java @@ -115,5 +115,15 @@ public Builder placeholder(String placeholder) { public FormFieldPaymentConfigFieldProperties build() { return new FormFieldPaymentConfigFieldProperties(label, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java index cf2cae11..6e3562c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java @@ -166,5 +166,15 @@ public FormFieldPaymentConfigFields build() { return new FormFieldPaymentConfigFields( cardNumber, expirationDate, securityCode, trustmarks, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java index 9cc8337a..e32bf944 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldSocial build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldSocialConfig config); @@ -302,5 +306,17 @@ public FormFieldSocial build() { return new FormFieldSocial( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java index 8148ad2d..13effceb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java @@ -55,5 +55,15 @@ public Builder from(FormFieldSocialConfig other) { public FormFieldSocialConfig build() { return new FormFieldSocialConfig(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java index 656d52c1..1101c638 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldTel build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldTelConfig config); @@ -301,5 +305,17 @@ public _FinalStage config(Optional config) { public FormFieldTel build() { return new FormFieldTel(id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java index 85020815..768703a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java @@ -215,5 +215,15 @@ public FormFieldTelConfig build() { return new FormFieldTelConfig( defaultValue, placeholder, minLength, maxLength, countryPicker, strings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java index b142adc2..64165d58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java @@ -91,5 +91,15 @@ public Builder filterPlaceholder(String filterPlaceholder) { public FormFieldTelConfigStrings build() { return new FormFieldTelConfigStrings(filterPlaceholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java index 7c1b0458..e34f7bbb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldText build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldTextConfig config); @@ -302,5 +306,17 @@ public FormFieldText build() { return new FormFieldText( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java index 18acecdb..3206f664 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java @@ -190,5 +190,15 @@ public FormFieldTextConfig build() { return new FormFieldTextConfig( multiline, defaultValue, placeholder, minLength, maxLength, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java index 6e84e982..ad19c724 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldUrl build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldUrlConfig config); @@ -301,5 +305,17 @@ public _FinalStage config(Optional config) { public FormFieldUrl build() { return new FormFieldUrl(id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java index 3ade6fdb..69c81148 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java @@ -114,5 +114,15 @@ public Builder placeholder(String placeholder) { public FormFieldUrlConfig build() { return new FormFieldUrlConfig(defaultValue, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFlow.java b/src/main/java/com/auth0/client/mgmt/types/FormFlow.java index a6edf66e..77901e71 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFlow.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFlow.java @@ -123,6 +123,10 @@ public interface ConfigStage { public interface _FinalStage { FormFlow build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage coordinates(Optional coordinates); _FinalStage coordinates(FormNodeCoordinates coordinates); @@ -210,5 +214,17 @@ public _FinalStage coordinates(Optional coordinates) { public FormFlow build() { return new FormFlow(id, type, coordinates, alias, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java index 27e81031..ca818ed4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java @@ -82,6 +82,10 @@ public interface FlowIdStage { public interface _FinalStage { FormFlowConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nextNode(Optional nextNode); _FinalStage nextNode(FormNodePointer nextNode); @@ -129,5 +133,17 @@ public _FinalStage nextNode(Optional nextNode) { public FormFlowConfig build() { return new FormFlowConfig(flowId, nextNode, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java b/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java index 04a0f3ec..b5f180c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java @@ -81,6 +81,10 @@ public interface KeyStage { public interface _FinalStage { FormHiddenField build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage value(Optional value); _FinalStage value(String value); @@ -128,5 +132,17 @@ public _FinalStage value(Optional value) { public FormHiddenField build() { return new FormHiddenField(key, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java b/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java index 747cf689..d4ed4bc5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java @@ -114,5 +114,15 @@ public Builder default_(String default_) { public FormLanguages build() { return new FormLanguages(primary, default_, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormMessages.java b/src/main/java/com/auth0/client/mgmt/types/FormMessages.java index 5cb40b11..13614114 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormMessages.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormMessages.java @@ -116,5 +116,15 @@ public Builder custom(Map custom) { public FormMessages build() { return new FormMessages(errors, custom, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java b/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java index 3dd9fcf1..09ec5351 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java @@ -81,6 +81,10 @@ public interface YStage { public interface _FinalStage { FormNodeCoordinates build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -119,5 +123,17 @@ public _FinalStage y(int y) { public FormNodeCoordinates build() { return new FormNodeCoordinates(x, y, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormRouter.java b/src/main/java/com/auth0/client/mgmt/types/FormRouter.java index 8bce7871..e9ba1564 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormRouter.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormRouter.java @@ -119,6 +119,10 @@ public interface TypeStage { public interface _FinalStage { FormRouter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage coordinates(Optional coordinates); _FinalStage coordinates(FormNodeCoordinates coordinates); @@ -216,5 +220,17 @@ public _FinalStage coordinates(Optional coordinates) { public FormRouter build() { return new FormRouter(id, type, coordinates, alias, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java index a6c450ea..7ba2fe87 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java @@ -117,5 +117,15 @@ public Builder fallback(FormNodePointer fallback) { public FormRouterConfig build() { return new FormRouterConfig(rules, fallback, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java b/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java index ea3f8356..0c5e69f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java @@ -93,6 +93,10 @@ public interface IdStage { public interface _FinalStage { FormRouterRule build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -160,5 +164,17 @@ public _FinalStage alias(Optional alias) { public FormRouterRule build() { return new FormRouterRule(id, alias, nextNode, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java b/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java index 5777adaa..6cab613c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java @@ -142,5 +142,15 @@ public Builder coordinates(FormNodeCoordinates coordinates) { public FormStartNode build() { return new FormStartNode(hiddenFields, nextNode, coordinates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStep.java b/src/main/java/com/auth0/client/mgmt/types/FormStep.java index c2ab7ef6..d0ca3732 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStep.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStep.java @@ -119,6 +119,10 @@ public interface TypeStage { public interface _FinalStage { FormStep build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage coordinates(Optional coordinates); _FinalStage coordinates(FormNodeCoordinates coordinates); @@ -216,5 +220,17 @@ public _FinalStage coordinates(Optional coordinates) { public FormStep build() { return new FormStep(id, type, coordinates, alias, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java index 7b61890c..a4f71c55 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java @@ -117,5 +117,15 @@ public Builder nextNode(FormNodePointer nextNode) { public FormStepConfig build() { return new FormStepConfig(components, nextNode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStyle.java b/src/main/java/com/auth0/client/mgmt/types/FormStyle.java index f90d8dbb..40764b6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStyle.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStyle.java @@ -91,5 +91,15 @@ public Builder css(String css) { public FormStyle build() { return new FormStyle(css, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormSummary.java b/src/main/java/com/auth0/client/mgmt/types/FormSummary.java index e7dca63d..aeb4d3fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormSummary.java @@ -138,6 +138,10 @@ public interface UpdatedAtStage { public interface _FinalStage { FormSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage embeddedAt(Optional embeddedAt); _FinalStage embeddedAt(String embeddedAt); @@ -235,5 +239,17 @@ public _FinalStage embeddedAt(Optional embeddedAt) { public FormSummary build() { return new FormSummary(id, name, createdAt, updatedAt, embeddedAt, submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java index 5b282abf..11992718 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java @@ -159,6 +159,10 @@ public interface ConfigStage { public interface _FinalStage { FormWidgetAuth0VerifiableCredentials build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -297,5 +301,17 @@ public FormWidgetAuth0VerifiableCredentials build() { return new FormWidgetAuth0VerifiableCredentials( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java index 89fe92e7..fae5b9e2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java @@ -139,6 +139,10 @@ public interface VerificationIdStage { public interface _FinalStage { FormWidgetAuth0VerifiableCredentialsConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage size(Optional size); _FinalStage size(Double size); @@ -238,5 +242,17 @@ public FormWidgetAuth0VerifiableCredentialsConfig build() { return new FormWidgetAuth0VerifiableCredentialsConfig( url, size, alternateText, accessToken, verificationId, maxWait, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java index 47b5d5d2..5641ec08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormWidgetGMapsAddress build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormWidgetGMapsAddress build() { return new FormWidgetGMapsAddress( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java index 380619e1..09209aef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java @@ -70,6 +70,10 @@ public interface ApiKeyStage { public interface _FinalStage { FormWidgetGMapsAddressConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public FormWidgetGMapsAddressConfig build() { return new FormWidgetGMapsAddressConfig(apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java index b7de0b48..d17515a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormWidgetRecaptcha build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormWidgetRecaptcha build() { return new FormWidgetRecaptcha( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java index eb321240..2b0822bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java @@ -82,6 +82,10 @@ public interface SecretKeyStage { public interface _FinalStage { FormWidgetRecaptchaConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage secretKey(@NotNull String secretKey) { public FormWidgetRecaptchaConfig build() { return new FormWidgetRecaptchaConfig(siteKey, secretKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java index 676cf76a..9aa52683 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java @@ -234,5 +234,15 @@ public GetActionExecutionResponseContent build() { return new GetActionExecutionResponseContent( id, triggerId, status, results, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java index b336a344..89252a7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java @@ -191,5 +191,15 @@ public Builder perPage(Integer perPage) { public GetActionModuleActionsResponseContent build() { return new GetActionModuleActionsResponseContent(actions, total, page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java index 746d4ef8..6157fcb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java @@ -418,5 +418,15 @@ public GetActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java index 69303809..3764890c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java @@ -284,5 +284,15 @@ public GetActionModuleVersionResponseContent build() { return new GetActionModuleVersionResponseContent( id, moduleId, versionNumber, code, secrets, dependencies, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java index 0c9be064..858595e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java @@ -191,5 +191,15 @@ public Builder perPage(Integer perPage) { public GetActionModuleVersionsResponseContent build() { return new GetActionModuleVersionsResponseContent(versions, total, page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java index d7b04d4e..a297b0a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java @@ -190,5 +190,15 @@ public Builder perPage(Integer perPage) { public GetActionModulesResponseContent build() { return new GetActionModulesResponseContent(modules, total, page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java index b2808f54..8abaae9a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java @@ -598,5 +598,15 @@ public GetActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java index b734effc..92962dd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java @@ -572,5 +572,15 @@ public GetActionVersionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java index 9c53ce7a..9b1d4696 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java @@ -434,5 +434,15 @@ public GetAculResponseContent build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java index 06ae4b92..da398289 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java @@ -283,5 +283,15 @@ public GetAttackProtectionCaptchaResponseContent build() { simpleCaptcha, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java index d5eb50df..9b991338 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java @@ -152,6 +152,10 @@ public interface MonitoringModeEnabledStage { public interface _FinalStage { GetBotDetectionSettingsResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage allowlist(List allowlist); _FinalStage addAllowlist(String allowlist); @@ -271,5 +275,17 @@ public GetBotDetectionSettingsResponseContent build() { monitoringModeEnabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java index 3309725f..0c93fddf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java @@ -176,6 +176,10 @@ public interface WidgetStage { public interface _FinalStage { GetBrandingDefaultThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -283,5 +287,17 @@ public GetBrandingDefaultThemeResponseContent build() { return new GetBrandingDefaultThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java index 117d4c67..b22a662c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java @@ -167,6 +167,10 @@ public interface NameStage { public interface _FinalStage { GetBrandingPhoneProviderResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -375,5 +379,17 @@ public GetBrandingPhoneProviderResponseContent build() { return new GetBrandingPhoneProviderResponseContent( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java index a647a9d1..4e25135b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java @@ -177,5 +177,15 @@ public Builder font(BrandingFont font) { public GetBrandingResponseContent build() { return new GetBrandingResponseContent(colors, faviconUrl, logoUrl, font, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java index 6bf26326..fd6b36e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java @@ -175,6 +175,10 @@ public interface WidgetStage { public interface _FinalStage { GetBrandingThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -282,5 +286,17 @@ public GetBrandingThemeResponseContent build() { return new GetBrandingThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java index 125b7d2c..367eb5e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>. + * Possible values: block, user_notification, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -67,7 +67,7 @@ public Optional> getShields() { /** * @return When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>. + * Possible values: immediately, daily, weekly, monthly. */ @JsonProperty("admin_notification_frequency") public Optional> getAdminNotificationFrequency() { @@ -161,7 +161,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>.

    + * Possible values: block, user_notification, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -176,7 +176,7 @@ public Builder shields(List shields) { /** *

    When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>.

    + * Possible values: immediately, daily, weekly, monthly.

    */ @JsonSetter(value = "admin_notification_frequency", nulls = Nulls.SKIP) public Builder adminNotificationFrequency( @@ -217,5 +217,15 @@ public GetBreachedPasswordDetectionSettingsResponseContent build() { return new GetBreachedPasswordDetectionSettingsResponseContent( enabled, shields, adminNotificationFrequency, method, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java index 45519ac6..af3343e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>. + * Possible values: block, user_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -162,7 +162,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>.

    + * Possible values: block, user_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -218,5 +218,15 @@ public GetBruteForceSettingsResponseContent build() { return new GetBruteForceSettingsResponseContent( enabled, shields, allowlist, mode, maxAttempts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java index 413a65ae..506b79f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java @@ -380,5 +380,15 @@ public GetClientCredentialResponseContent build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java index 4cf6bf0c..7f8797d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java @@ -379,5 +379,15 @@ public GetClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java index de80034a..95296975 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetClientRequestParameters build() { return new GetClientRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java index 4a2fc277..8e85b787 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public GetClientResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java index bb84d0ac..e82e3ecb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java @@ -139,5 +139,15 @@ public Builder next(String next) { public GetConnectionEnabledClientsResponseContent build() { return new GetConnectionEnabledClientsResponseContent(clients, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java index 36042f5e..6faaeb5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java @@ -254,5 +254,15 @@ public GetConnectionProfileResponseContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java index dd5a9527..ee572915 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java @@ -152,5 +152,15 @@ public Builder template(ConnectionProfileTemplate template) { public GetConnectionProfileTemplateResponseContent build() { return new GetConnectionProfileTemplateResponseContent(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java index 51b0465a..104f1e58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java @@ -51,7 +51,7 @@ public OptionalNullable getFields() { } /** - * @return <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>) + * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -155,7 +155,7 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { } /** - *

    <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)

    + *

    true if the fields specified are to be included in the result, false otherwise (defaults to true)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@Nullable OptionalNullable includeFields) { @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetConnectionRequestParameters build() { return new GetConnectionRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java index d3ca8697..05f133f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java @@ -432,5 +432,15 @@ public GetConnectionResponseContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java index fe0448bb..2b890744 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java @@ -270,6 +270,10 @@ public interface TypeStage { public interface _FinalStage { GetCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -611,5 +615,17 @@ public GetCustomDomainResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java index a7392658..6415008b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java @@ -100,5 +100,15 @@ public Builder keys(List keys) { public GetCustomSigningKeysResponseContent build() { return new GetCustomSigningKeysResponseContent(keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java index 5c044597..b2a47cf6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java @@ -189,5 +189,15 @@ public Builder to(com.auth0.client.mgmt.core.Nullable to) { public GetDailyStatsRequestParameters build() { return new GetDailyStatsRequestParameters(from, to, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java index 15084843..36102662 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java @@ -100,5 +100,15 @@ public Builder mapping(List mapping) { public GetDirectoryProvisioningDefaultMappingResponseContent build() { return new GetDirectoryProvisioningDefaultMappingResponseContent(mapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java index 0fc87627..ab9e4346 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java @@ -247,6 +247,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetDirectoryProvisioningResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -509,5 +513,17 @@ public GetDirectoryProvisioningResponseContent build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java index 33b76c55..03b294cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java @@ -208,5 +208,15 @@ public GetEmailProviderResponseContent build() { return new GetEmailProviderResponseContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java index 8907b4e8..adc1dfc6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java @@ -565,5 +565,15 @@ public GetEmailTemplateResponseContent build() { enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java index 82364113..089e4474 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java @@ -200,6 +200,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetEncryptionKeyResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -412,5 +416,17 @@ public GetEncryptionKeyResponseContent build() { return new GetEncryptionKeyResponseContent( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java index 4c7b2294..b4c23a92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java @@ -155,6 +155,10 @@ public interface EventTypeStage { public interface _FinalStage { GetEventStreamDeliveryHistoryResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Results of delivery attempts

    */ @@ -290,5 +294,17 @@ public GetEventStreamDeliveryHistoryResponseContent build() { return new GetEventStreamDeliveryHistoryResponseContent( id, eventStreamId, status, eventType, attempts, event, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java index c30bb03d..ca0f95f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java @@ -220,6 +220,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetFlowExecutionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Journey id

    */ @@ -433,5 +437,17 @@ public GetFlowExecutionResponseContent build() { endedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java index e526c2f0..96abbd4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java @@ -128,5 +128,15 @@ public Builder hydrate(GetFlowRequestParametersHydrateEnum hydrate) { public GetFlowRequestParameters build() { return new GetFlowRequestParameters(hydrate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java index 5f7ca895..d666dac1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java @@ -139,6 +139,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetFlowResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -237,5 +241,17 @@ public GetFlowResponseContent build() { return new GetFlowResponseContent( id, name, actions, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java index 1effc5c7..3cb76b17 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java @@ -246,6 +246,10 @@ public interface FingerprintStage { public interface _FinalStage { GetFlowsVaultConnectionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection environment.

    */ @@ -472,5 +476,17 @@ public GetFlowsVaultConnectionResponseContent build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java index 0370436d..91045dd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java @@ -128,5 +128,15 @@ public Builder hydrate(FormsRequestParametersHydrateEnum hydrate) { public GetFormRequestParameters build() { return new GetFormRequestParameters(hydrate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java index fda4b7a3..6045274b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java @@ -222,6 +222,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetFormResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -473,5 +477,17 @@ public GetFormResponseContent build() { submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java index 6baabfb0..4d0b52a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java @@ -132,5 +132,15 @@ public Builder next(String next) { public GetGroupMembersResponseContent build() { return new GetGroupMembersResponseContent(members, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java index 68c342ed..0085556d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java @@ -243,6 +243,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetGroupResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    External identifier for the group, often used for SCIM synchronization. Max length of 256 characters.

    */ @@ -516,5 +520,17 @@ public GetGroupResponseContent build() { updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java index bf2dcd0a..d03ad6a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java @@ -152,6 +152,10 @@ public interface IdStage { public interface _FinalStage { GetGuardianEnrollmentResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage status(Optional status); _FinalStage status(GuardianEnrollmentStatus status); @@ -335,5 +339,17 @@ public GetGuardianEnrollmentResponseContent build() { return new GetGuardianEnrollmentResponseContent( id, status, name, identifier, phoneNumber, enrolledAt, lastAuth, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java index a400b0fd..c5285690 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public GetGuardianFactorDuoSettingsResponseContent build() { return new GetGuardianFactorDuoSettingsResponseContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java index 9cd64efc..e7c13437 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java @@ -101,5 +101,15 @@ public Builder messageTypes(List messa public GetGuardianFactorPhoneMessageTypesResponseContent build() { return new GetGuardianFactorPhoneMessageTypesResponseContent(messageTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java index 5a1c1ca0..a884104b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { GetGuardianFactorPhoneTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public GetGuardianFactorPhoneTemplatesResponseContent build() { return new GetGuardianFactorPhoneTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java index e6402e53..59b52b08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { GetGuardianFactorSmsTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public GetGuardianFactorSmsTemplatesResponseContent build() { return new GetGuardianFactorSmsTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java index 96f717c2..99dcde5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java @@ -173,5 +173,15 @@ public Builder enabled(Boolean enabled) { public GetGuardianFactorsProviderApnsResponseContent build() { return new GetGuardianFactorsProviderApnsResponseContent(bundleId, sandbox, enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java index 5b13c1cc..59c1be6f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public GetGuardianFactorsProviderPhoneResponseContent build() { return new GetGuardianFactorsProviderPhoneResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java index 7d7d0543..57012bd5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java @@ -314,5 +314,15 @@ public GetGuardianFactorsProviderPhoneTwilioResponseContent build() { return new GetGuardianFactorsProviderPhoneTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java index ac65d4e6..cee43bcf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java @@ -94,5 +94,15 @@ public Builder provider(GuardianFactorsProviderPushNotificationProviderDataEnum public GetGuardianFactorsProviderPushNotificationResponseContent build() { return new GetGuardianFactorsProviderPushNotificationResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java index 3a720f8c..118542bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public GetGuardianFactorsProviderSmsResponseContent build() { return new GetGuardianFactorsProviderSmsResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java index 49e7e495..1d08d10e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java @@ -314,5 +314,15 @@ public GetGuardianFactorsProviderSmsTwilioResponseContent build() { return new GetGuardianFactorsProviderSmsTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java index 7cc96727..0423aba7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java @@ -356,5 +356,15 @@ public GetGuardianFactorsProviderSnsResponseContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java index 3c3c3917..0cd53c4b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java @@ -130,5 +130,15 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { public GetHookRequestParameters build() { return new GetHookRequestParameters(fields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java index d7ad3bea..0a010cff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java @@ -243,5 +243,15 @@ public Builder dependencies(Map dependencies) { public GetHookResponseContent build() { return new GetHookResponseContent(triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java index 032a6928..303f282c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java @@ -123,5 +123,15 @@ public Builder errors(List errors) { public GetJobErrorResponseContent build() { return new GetJobErrorResponseContent(user, errors, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java index 54163273..7818cc5e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java @@ -160,6 +160,10 @@ public interface IdStage { public interface _FinalStage { GetJobGenericErrorResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -313,5 +317,17 @@ public GetJobGenericErrorResponseContent build() { return new GetJobGenericErrorResponseContent( status, type, createdAt, id, connectionId, statusDetails, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java b/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java index 679232e1..0b6b415a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java @@ -157,5 +157,15 @@ public Builder path(String path) { public GetJobImportUserError build() { return new GetJobImportUserError(code, message, path, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java index ff0eb0d0..9a9fa1ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java @@ -230,6 +230,10 @@ public interface IdStage { public interface _FinalStage { GetJobResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -524,5 +528,17 @@ public GetJobResponseContent build() { summary, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java b/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java index 7c0f8624..80a981d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java @@ -189,5 +189,15 @@ public Builder total(Integer total) { public GetJobSummary build() { return new GetJobSummary(failed, updated, inserted, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java index 4c479c26..f17b7ed3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java @@ -751,5 +751,15 @@ public GetLogResponseContent build() { locationInfo, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java index f4cf25ce..9f0ec7bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java @@ -251,5 +251,15 @@ public GetNetworkAclsResponseContent build() { return new GetNetworkAclsResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java index cddbd693..830fddfa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java @@ -234,5 +234,15 @@ public GetOrganizationByNameResponseContent build() { return new GetOrganizationByNameResponseContent( id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java index b9aaa3bb..4cb4acc1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java @@ -225,5 +225,15 @@ public GetOrganizationConnectionResponseContent build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java index 1d2e7cd2..f5dfbd36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { GetOrganizationDiscoveryDomainByNameResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public GetOrganizationDiscoveryDomainByNameResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java index cffdbe4d..c3d561e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { GetOrganizationDiscoveryDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public GetOrganizationDiscoveryDomainResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java index 9e33abce..7f21b707 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java @@ -465,5 +465,15 @@ public GetOrganizationInvitationResponseContent build() { ticketId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java index 7c383c98..ef3e0106 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java @@ -233,5 +233,15 @@ public GetOrganizationResponseContent build() { return new GetOrganizationResponseContent( id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java index 501d59b7..0e34bb06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java @@ -154,6 +154,10 @@ public interface DisabledStage { public interface _FinalStage { GetPhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -277,5 +281,17 @@ public GetPhoneTemplateResponseContent build() { return new GetPhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java index 91857abc..4656c48f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java @@ -477,5 +477,15 @@ public GetRefreshTokenResponseContent build() { lastExchangedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java index 3012356f..2866dbaa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java @@ -132,5 +132,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetResourceServerRequestParameters build() { return new GetResourceServerRequestParameters(includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java index 17b8a5c8..0b61e9a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java @@ -737,5 +737,15 @@ public GetResourceServerResponseContent build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java index e3ac98df..656f59a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -77,6 +77,10 @@ public interface RememberForStage { public interface _FinalStage { GetRiskAssessmentsSettingsNewDeviceResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage rememberFor(int rememberFor) { public GetRiskAssessmentsSettingsNewDeviceResponseContent build() { return new GetRiskAssessmentsSettingsNewDeviceResponseContent(rememberFor, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java index b670eed9..4de912ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java @@ -76,6 +76,10 @@ public interface EnabledStage { public interface _FinalStage { GetRiskAssessmentsSettingsResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage enabled(boolean enabled) { public GetRiskAssessmentsSettingsResponseContent build() { return new GetRiskAssessmentsSettingsResponseContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java index 4b04ade2..0ead2bc8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java @@ -157,5 +157,15 @@ public Builder description(String description) { public GetRoleResponseContent build() { return new GetRoleResponseContent(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java index 0b9e31fa..3f32553b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetRuleRequestParameters build() { return new GetRuleRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java index 716fd9d7..3b971063 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public GetRuleResponseContent build() { return new GetRuleResponseContent(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java index 856daa88..731c74f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java @@ -100,5 +100,15 @@ public Builder mapping(List mapping) { public GetScimConfigurationDefaultMappingResponseContent build() { return new GetScimConfigurationDefaultMappingResponseContent(mapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java index a3da02ae..7f026d52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java @@ -328,5 +328,15 @@ public GetScimConfigurationResponseContent build() { updatedOn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java index 506791b7..faeab76d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java @@ -119,7 +119,7 @@ public Optional getBranding() { } /** - * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate] + * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate] */ @JsonProperty("allowed_strategies") public Optional> getAllowedStrategies() { @@ -315,7 +315,7 @@ public Builder branding(SelfServiceProfileBrandingProperties branding) { } /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) public Builder allowedStrategies(Optional> allowedStrategies) { @@ -355,5 +355,15 @@ public GetSelfServiceProfileResponseContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java index 3f7ebba2..237791f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java @@ -460,5 +460,15 @@ public GetSessionResponseContent build() { sessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java index 7a588405..2887ae8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java @@ -154,5 +154,15 @@ public GetSettingsResponseContent build() { return new GetSettingsResponseContent( universalLoginExperience, identifierFirst, webauthnPlatformFirstFactor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java index c53de182..8e0d7419 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java @@ -248,6 +248,10 @@ public interface ThumbprintStage { public interface _FinalStage { GetSigningKeysResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -548,5 +552,17 @@ public GetSigningKeysResponseContent build() { revokedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java index e8571ce8..c8527594 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java @@ -99,5 +99,15 @@ public Builder akamaiEnabled(Boolean akamaiEnabled) { public GetSupplementalSignalsResponseContent build() { return new GetSupplementalSignalsResponseContent(akamaiEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java index a73e05b8..d665c2e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java @@ -54,7 +54,7 @@ public Optional getEnabled() { /** * @return Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -143,7 +143,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -182,5 +182,15 @@ public GetSuspiciousIpThrottlingSettingsResponseContent build() { return new GetSuspiciousIpThrottlingSettingsResponseContent( enabled, shields, allowlist, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java index 0e7f904d..da70b1f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java @@ -1450,5 +1450,15 @@ public GetTenantSettingsResponseContent build() { enableAiGuide, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java index 7ffc478d..e4882495 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java @@ -277,5 +277,15 @@ public GetTokenExchangeProfileResponseContent build() { return new GetTokenExchangeProfileResponseContent( id, name, subjectTokenType, actionId, type, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java b/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java index 1af8321d..4ae79a36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java @@ -97,5 +97,15 @@ public Builder body(String body) { public GetUniversalLoginTemplate build() { return new GetUniversalLoginTemplate(body, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java index 750030c2..345b0aa6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java @@ -169,5 +169,15 @@ public Builder userAttributes( public GetUserAttributeProfileResponseContent build() { return new GetUserAttributeProfileResponseContent(id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java index 5abc901a..98f67966 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java @@ -152,5 +152,15 @@ public Builder template(UserAttributeProfileTemplate template) { public GetUserAttributeProfileTemplateResponseContent build() { return new GetUserAttributeProfileTemplateResponseContent(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java index 1b7f4ea8..ace19140 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java @@ -353,6 +353,10 @@ public interface CreatedAtStage { public interface _FinalStage { GetUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The authentication method status

    */ @@ -925,5 +929,17 @@ public GetUserAuthenticationMethodResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java index b4c15799..7458f1af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java @@ -208,5 +208,15 @@ public Builder total(Double total) { public GetUserGroupsPaginatedResponseContent build() { return new GetUserGroupsPaginatedResponseContent(groups, next, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java index a95706d1..b7cd5485 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetUserRequestParameters build() { return new GetUserRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java index 497df422..a9176af1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public GetUserResponseContent build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java index f17487c0..998abf54 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java @@ -418,5 +418,15 @@ public GetVerifiableCredentialTemplateResponseContent build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Group.java b/src/main/java/com/auth0/client/mgmt/types/Group.java index 2026f9e5..ccaf8c3c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Group.java +++ b/src/main/java/com/auth0/client/mgmt/types/Group.java @@ -425,5 +425,15 @@ public Group build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GroupMember.java b/src/main/java/com/auth0/client/mgmt/types/GroupMember.java index 0b0880e4..5112999b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GroupMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/GroupMember.java @@ -208,5 +208,15 @@ public Builder createdAt(OffsetDateTime createdAt) { public GroupMember build() { return new GroupMember(id, memberType, type, connectionId, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java index 8cca5a60..b7dd8900 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java +++ b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java @@ -101,6 +101,10 @@ public interface EnabledStage { public interface _FinalStage { GuardianFactor build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether trial limits have been exceeded.

    */ @@ -183,5 +187,17 @@ public _FinalStage trialExpired(Optional trialExpired) { public GuardianFactor build() { return new GuardianFactor(enabled, trialExpired, name, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Hook.java b/src/main/java/com/auth0/client/mgmt/types/Hook.java index b29098a2..b5361ef1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Hook.java +++ b/src/main/java/com/auth0/client/mgmt/types/Hook.java @@ -243,5 +243,15 @@ public Builder dependencies(Map dependencies) { public Hook build() { return new Hook(triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java b/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java index 1764d086..a8b053b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java +++ b/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java @@ -126,5 +126,15 @@ public Builder value(String value) { public HttpCustomHeader build() { return new HttpCustomHeader(header, value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java index 8ca9481c..81697eb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java @@ -17,10 +17,12 @@ public interface IConnectionOptionsCommonOidc { Optional getConnectionSettings(); - OptionalNullable getFederatedConnectionsAccessTokens(); - Optional> getDomainAliases(); + Optional getDpopSigningAlg(); + + OptionalNullable getFederatedConnectionsAccessTokens(); + Optional getIconUrl(); OptionalNullable> getIdTokenSignedResponseAlgs(); 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 7be1f577..361ff932 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Identity.java +++ b/src/main/java/com/auth0/client/mgmt/types/Identity.java @@ -108,6 +108,10 @@ public interface ProviderStage { public interface _FinalStage { Identity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    connection_id of the identity.

    */ @@ -180,5 +184,17 @@ public _FinalStage connectionId(Optional connectionId) { public Identity build() { return new Identity(userId, provider, connectionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java index 588507ce..a7ca3b07 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java @@ -201,6 +201,10 @@ public interface UpdatedAtStage { public interface _FinalStage { ImportEncryptionKeyResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -413,5 +417,17 @@ public ImportEncryptionKeyResponseContent build() { return new ImportEncryptionKeyResponseContent( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Integration.java b/src/main/java/com/auth0/client/mgmt/types/Integration.java index 647537bc..c203ac62 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Integration.java +++ b/src/main/java/com/auth0/client/mgmt/types/Integration.java @@ -515,5 +515,15 @@ public Integration build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java index 60f4838a..c00dcf12 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java @@ -211,5 +211,15 @@ public IntegrationRelease build() { return new IntegrationRelease( id, trigger, semver, requiredSecrets, requiredConfiguration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java index 8a835660..ab399895 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java @@ -353,5 +353,15 @@ public IntegrationRequiredParam build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java index 29cd5ccc..1cc62a43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java @@ -126,5 +126,15 @@ public Builder label(String label) { public IntegrationRequiredParamOption build() { return new IntegrationRequiredParamOption(value, label, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java index 62f0972f..7717b561 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java @@ -126,5 +126,15 @@ public Builder minor(Integer minor) { public IntegrationSemVer build() { return new IntegrationSemVer(major, minor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java index 37a8fb6e..53965b74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java @@ -76,6 +76,10 @@ public interface ClientIdStage { public interface _FinalStage { LinkedClientConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage clientId(@NotNull String clientId) { public LinkedClientConfiguration build() { return new LinkedClientConfiguration(clientId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java index 3f2a5dad..ee2d3d19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder bindings(List bindings) { public ListActionBindingsPaginatedResponseContent build() { return new ListActionBindingsPaginatedResponseContent(total, page, perPage, bindings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java index 85b7426c..53c396b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java @@ -93,5 +93,15 @@ public Builder triggers(List triggers) { public ListActionTriggersResponseContent build() { return new ListActionTriggersResponseContent(triggers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java index ecc1418e..f3dccdcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java @@ -185,5 +185,15 @@ public Builder versions(List versions) { public ListActionVersionsPaginatedResponseContent build() { return new ListActionVersionsPaginatedResponseContent(total, page, perPage, versions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java index bca8a210..600f4458 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder actions(List actions) { public ListActionsPaginatedResponseContent build() { return new ListActionsPaginatedResponseContent(total, page, perPage, actions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java index 677299d8..6a1e2bc6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java @@ -415,5 +415,15 @@ public ListActionsRequestParameters build() { return new ListActionsRequestParameters( triggerId, actionName, deployed, page, perPage, installed, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java index 0bb4607f..1f2d3fb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java @@ -185,5 +185,15 @@ public Builder total(Double total) { public ListAculsOffsetPaginatedResponseContent build() { return new ListAculsOffsetPaginatedResponseContent(configs, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java index 28ab28cc..470b7a2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java @@ -434,5 +434,15 @@ public ListAculsResponseContentItem build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java index fba219f2..15031f24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java @@ -94,5 +94,15 @@ public Builder providers(List providers) { public ListBrandingPhoneProvidersResponseContent build() { return new ListBrandingPhoneProvidersResponseContent(providers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java index e9bb942a..1966eae0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java @@ -133,5 +133,15 @@ public Builder next(String next) { public ListClientConnectionsResponseContent build() { return new ListClientConnectionsResponseContent(connections, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java index b356b351..bf34c5f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListClientGrantOrganizationsPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListClientGrantOrganizationsPaginatedResponseContent other) } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder organizations(List organizations) { public ListClientGrantOrganizationsPaginatedResponseContent build() { return new ListClientGrantOrganizationsPaginatedResponseContent(next, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java index 4fddd9cf..eae9cd7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListClientGrantPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListClientGrantPaginatedResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder clientGrants(List clientGrants) { public ListClientGrantPaginatedResponseContent build() { return new ListClientGrantPaginatedResponseContent(next, clientGrants, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java index 149328da..2622eca5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java @@ -425,5 +425,15 @@ public ListClientGrantsRequestParameters build() { return new ListClientGrantsRequestParameters( from, take, audience, clientId, allowAnyOrganization, subjectType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java index b1a490f6..0ba18af8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder clients(List clients) { public ListClientsOffsetPaginatedResponseContent build() { return new ListClientsOffsetPaginatedResponseContent(start, limit, total, clients, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java index 83ef25b3..d9584dbd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -154,7 +154,7 @@ public OptionalNullable getAppType() { } /** - * @return Advanced Query in <a href="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i> + * @return Advanced Query in Lucene syntax.Permitted Queries:
    • client_grant.organization_id:{organization_id}
    • client_grant.allow_any_organization:true
    Additional Restrictions:
    • Cannot be used in combination with other filters
    • Requires use of the from and take paging parameters (checkpoint paginatinon)
    • Reduced rate limits apply. See Rate Limit Configurations
    Note: Recent updates may not be immediately reflected in query results */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -558,7 +558,7 @@ public Builder appType(com.auth0.client.mgmt.core.Nullable appType) { } /** - *

    Advanced Query in <a href="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i>

    + *

    Advanced Query in Lucene syntax.Permitted Queries:

    • client_grant.organization_id:{organization_id}
    • client_grant.allow_any_organization:true
    Additional Restrictions:
    • Cannot be used in combination with other filters
    • Requires use of the from and take paging parameters (checkpoint paginatinon)
    • Reduced rate limits apply. See Rate Limit Configurations
    Note: Recent updates may not be immediately reflected in query results

    */ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@Nullable OptionalNullable q) { @@ -604,5 +604,15 @@ public ListClientsRequestParameters build() { q, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java index 05a7d1b7..2ed7a9de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListConnectionProfileRequestParameters build() { return new ListConnectionProfileRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java index fba212a2..bc7b581e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java @@ -96,5 +96,15 @@ public Builder connectionProfileTemplates(List co public ListConnectionProfileTemplateResponseContent build() { return new ListConnectionProfileTemplateResponseContent(connectionProfileTemplates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java index d0a16859..e08a1887 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java @@ -124,5 +124,15 @@ public Builder connectionProfiles(List connectionProfiles) { public ListConnectionProfilesPaginatedResponseContent build() { return new ListConnectionProfilesPaginatedResponseContent(next, connectionProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java index 7b7e04dc..c9c2432a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListConnectionsCheckpointPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results. + * @return Opaque identifier for use with the from query parameter for the next page of results. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListConnectionsCheckpointPaginatedResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder connections(List connections) { public ListConnectionsCheckpointPaginatedResponseContent build() { return new ListConnectionsCheckpointPaginatedResponseContent(next, connections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java index a4f64a98..459c3e21 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java @@ -114,7 +114,7 @@ public OptionalNullable getFields() { } /** - * @return <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>) + * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -385,7 +385,7 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { } /** - *

    <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)

    + *

    true if the fields specified are to be included in the result, false otherwise (defaults to true)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@Nullable OptionalNullable includeFields) { @@ -422,5 +422,15 @@ public ListConnectionsQueryParameters build() { return new ListConnectionsQueryParameters( strategy, from, take, name, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java index 662c4a03..4a49cd1d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java @@ -47,7 +47,7 @@ private ListCustomDomainsRequestParameters( } /** - * @return Query in <a href ="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene query string syntax</a>. + * @return Query in Lucene query string syntax. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -83,7 +83,7 @@ public OptionalNullable getIncludeFields() { } /** - * @return Field to sort by. Only <code>domain:1</code> (ascending order by domain) is supported at this time. + * @return Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -175,7 +175,7 @@ public Builder from(ListCustomDomainsRequestParameters other) { } /** - *

    Query in <a href ="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene query string syntax</a>.

    + *

    Query in Lucene query string syntax.

    */ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@Nullable OptionalNullable q) { @@ -277,7 +277,7 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ } /** - *

    Field to sort by. Only <code>domain:1</code> (ascending order by domain) is supported at this time.

    + *

    Field to sort by. Only domain:1 (ascending order by domain) is supported at this time.

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@Nullable OptionalNullable sort) { @@ -313,5 +313,15 @@ public Builder sort(com.auth0.client.mgmt.core.Nullable sort) { public ListCustomDomainsRequestParameters build() { return new ListCustomDomainsRequestParameters(q, fields, includeFields, sort, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java index c97ba3c8..bd14aa3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListDeviceCredentialsOffsetPaginatedResponseContent build() { return new ListDeviceCredentialsOffsetPaginatedResponseContent( start, limit, total, deviceCredentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java index 4bf65f86..7c5b45d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java @@ -535,5 +535,15 @@ public ListDeviceCredentialsRequestParameters build() { return new ListDeviceCredentialsRequestParameters( page, perPage, includeTotals, fields, includeFields, userId, clientId, type, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java index d0a8040e..b5e6e8fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java @@ -141,5 +141,15 @@ public Builder next(String next) { public ListDirectoryProvisioningsResponseContent build() { return new ListDirectoryProvisioningsResponseContent(directoryProvisionings, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java index 8b4abaab..63502410 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder keys(List keys) { public ListEncryptionKeyOffsetPaginatedResponseContent build() { return new ListEncryptionKeyOffsetPaginatedResponseContent(start, limit, total, keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java index 0dffe800..d77157f3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListEventStreamsRequestParameters build() { return new ListEventStreamsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java index fb24218a..0baf3770 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java @@ -42,7 +42,7 @@ public Optional> getEventStreams() { } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results. + * @return Opaque identifier for use with the from query parameter for the next page of results. */ @JsonProperty("next") public Optional getNext() { @@ -107,7 +107,7 @@ public Builder eventStreams(List eventStreams) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -123,5 +123,15 @@ public Builder next(String next) { public ListEventStreamsResponseContent build() { return new ListEventStreamsResponseContent(eventStreams, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java index af0d6c73..2ed4841f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListFlowExecutionsPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListFlowExecutionsPaginatedResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder executions(List executions) { public ListFlowExecutionsPaginatedResponseContent build() { return new ListFlowExecutionsPaginatedResponseContent(next, executions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java index 94bce6bc..d559b0b4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder flows(List flows) { public ListFlowsOffsetPaginatedResponseContent build() { return new ListFlowsOffsetPaginatedResponseContent(start, limit, total, flows, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java index c012c50a..7a1b1845 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java @@ -345,5 +345,15 @@ public ListFlowsRequestParameters build() { return new ListFlowsRequestParameters( hydrate, page, perPage, includeTotals, synchronous, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java index a52a3a21..eae07e77 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListFlowsVaultConnectionsOffsetPaginatedResponseContent build() { return new ListFlowsVaultConnectionsOffsetPaginatedResponseContent( start, limit, total, connections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java index 39ce76c6..7a0298e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder forms(List forms) { public ListFormsOffsetPaginatedResponseContent build() { return new ListFormsOffsetPaginatedResponseContent(start, limit, total, forms, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java index 8bedcddf..f9884eab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java @@ -283,5 +283,15 @@ public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includ public ListFormsRequestParameters build() { return new ListFormsRequestParameters(hydrate, page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java index 1ff98e7e..6cc80a39 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java @@ -208,5 +208,15 @@ public Builder total(Double total) { public ListGroupsPaginatedResponseContent build() { return new ListGroupsPaginatedResponseContent(groups, next, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java index 5cf0c078..f23c5eae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java @@ -485,5 +485,15 @@ public ListGroupsRequestParameters build() { return new ListGroupsRequestParameters( connectionId, name, externalId, fields, includeFields, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java index 58d7d697..28e51b16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder hooks(List hooks) { public ListHooksOffsetPaginatedResponseContent build() { return new ListHooksOffsetPaginatedResponseContent(start, limit, total, hooks, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java index 4f14df2d..6eef12b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java @@ -406,5 +406,15 @@ public ListHooksRequestParameters build() { return new ListHooksRequestParameters( page, perPage, includeTotals, enabled, fields, triggerId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java index 1acead10..a0da0f79 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder logs(List logs) { public ListLogOffsetPaginatedResponseContent build() { return new ListLogOffsetPaginatedResponseContent(start, limit, length, total, logs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java index a6a3d2d0..7c340258 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java @@ -68,7 +68,7 @@ public OptionalNullable getPage() { } /** - * @return Number of results per page. Paging is disabled if parameter not sent. Default: <code>50</code>. Max value: <code>100</code> + * @return Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("per_page") @@ -77,7 +77,7 @@ public OptionalNullable getPerPage() { } /** - * @return Field to use for sorting appended with <code>:1</code> for ascending and <code>:-1</code> for descending. e.g. <code>date:-1</code> + * @return Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -89,7 +89,7 @@ public OptionalNullable getSort() { } /** - * @return Comma-separated list of fields to include or exclude (based on value provided for <code>include_fields</code>) in the result. Leave empty to retrieve all fields. + * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("fields") @@ -101,7 +101,7 @@ public OptionalNullable getFields() { } /** - * @return Whether specified fields are to be included (<code>true</code>) or excluded (<code>false</code>) + * @return Whether specified fields are to be included (true) or excluded (false) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -262,7 +262,7 @@ public Builder page(Nullable page) { } /** - *

    Number of results per page. Paging is disabled if parameter not sent. Default: <code>50</code>. Max value: <code>100</code>

    + *

    Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100

    */ @JsonSetter(value = "per_page", nulls = Nulls.SKIP) public Builder perPage(OptionalNullable perPage) { @@ -296,7 +296,7 @@ public Builder perPage(Nullable perPage) { } /** - *

    Field to use for sorting appended with <code>:1</code> for ascending and <code>:-1</code> for descending. e.g. <code>date:-1</code>

    + *

    Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@org.jetbrains.annotations.Nullable OptionalNullable sort) { @@ -330,7 +330,7 @@ public Builder sort(Nullable sort) { } /** - *

    Comma-separated list of fields to include or exclude (based on value provided for <code>include_fields</code>) in the result. Leave empty to retrieve all fields.

    + *

    Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

    */ @JsonSetter(value = "fields", nulls = Nulls.SKIP) public Builder fields(@org.jetbrains.annotations.Nullable OptionalNullable fields) { @@ -364,7 +364,7 @@ public Builder fields(Nullable fields) { } /** - *

    Whether specified fields are to be included (<code>true</code>) or excluded (<code>false</code>)

    + *

    Whether specified fields are to be included (true) or excluded (false)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@org.jetbrains.annotations.Nullable OptionalNullable includeFields) { @@ -471,5 +471,15 @@ public ListLogsRequestParameters build() { return new ListLogsRequestParameters( page, perPage, sort, fields, includeFields, includeTotals, search, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java index c6f09816..1b578e24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListNetworkAclsOffsetPaginatedResponseContent build() { return new ListNetworkAclsOffsetPaginatedResponseContent( networkAcls, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java index c0384bdc..02203672 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java @@ -223,5 +223,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListNetworkAclsRequestParameters build() { return new ListNetworkAclsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java index 758e7980..32a4f26e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListOrganizationClientGrantsOffsetPaginatedResponseContent build() { return new ListOrganizationClientGrantsOffsetPaginatedResponseContent( start, limit, total, clientGrants, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java index 29935e03..77a77799 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListOrganizationConnectionsOffsetPaginatedResponseContent build() { return new ListOrganizationConnectionsOffsetPaginatedResponseContent( start, limit, total, enabledConnections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java index 1164613b..f18b8733 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java @@ -129,5 +129,15 @@ public Builder addAllDomains(List domains) { public ListOrganizationDiscoveryDomainsResponseContent build() { return new ListOrganizationDiscoveryDomainsResponseContent(next, domains, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java index 211d4a4c..cf6e4fdc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java @@ -142,5 +142,15 @@ public ListOrganizationInvitationsOffsetPaginatedResponseContent build() { return new ListOrganizationInvitationsOffsetPaginatedResponseContent( start, limit, invitations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java index d0bc8b68..71bd5a66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListOrganizationMemberRolesOffsetPaginatedResponseContent build() { return new ListOrganizationMemberRolesOffsetPaginatedResponseContent( start, limit, total, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java index f04ca1ef..1a0833d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java @@ -118,5 +118,15 @@ public Builder members(List members) { public ListOrganizationMembersPaginatedResponseContent build() { return new ListOrganizationMembersPaginatedResponseContent(next, members, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java index f299d927..a99f4d16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java @@ -118,5 +118,15 @@ public Builder organizations(List organizations) { public ListOrganizationsPaginatedResponseContent build() { return new ListOrganizationsPaginatedResponseContent(next, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java index 36cbf3e9..03451466 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java @@ -64,7 +64,7 @@ public OptionalNullable getTake() { } /** - * @return Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code>. We currently support sorting by the following fields: <code>name</code>, <code>display_name</code> and <code>created_at</code>. + * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -206,7 +206,7 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { } /** - *

    Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code>. We currently support sorting by the following fields: <code>name</code>, <code>display_name</code> and <code>created_at</code>.

    + *

    Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at.

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@Nullable OptionalNullable sort) { @@ -242,5 +242,15 @@ public Builder sort(com.auth0.client.mgmt.core.Nullable sort) { public ListOrganizationsRequestParameters build() { return new ListOrganizationsRequestParameters(from, take, sort, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java index a01528c7..d1be706b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java @@ -93,5 +93,15 @@ public Builder templates(List templates) { public ListPhoneTemplatesResponseContent build() { return new ListPhoneTemplatesResponseContent(templates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java index 15d62717..3dc2f472 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java @@ -124,5 +124,15 @@ public Builder next(String next) { public ListRefreshTokensPaginatedResponseContent build() { return new ListRefreshTokensPaginatedResponseContent(tokens, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java index 9d78cdf5..21579fd1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListResourceServerOffsetPaginatedResponseContent build() { return new ListResourceServerOffsetPaginatedResponseContent( start, limit, total, resourceServers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java index d145eeb9..a2835416 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java @@ -54,7 +54,7 @@ private ListResourceServerRequestParameters( } /** - * @return An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../resource-servers?identifiers=id1&identifiers=id2</i> + * @return An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).e.g. ../resource-servers?identifiers=id1&identifiers=id2 */ @JsonIgnore public Optional> getIdentifiers() { @@ -176,7 +176,7 @@ public Builder from(ListResourceServerRequestParameters other) { } /** - *

    An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../resource-servers?identifiers=id1&identifiers=id2</i>

    + *

    An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).e.g. ../resource-servers?identifiers=id1&identifiers=id2

    */ @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) public Builder identifiers(@Nullable Optional> identifiers) { @@ -345,5 +345,15 @@ public ListResourceServerRequestParameters build() { return new ListResourceServerRequestParameters( identifiers, page, perPage, includeTotals, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java index bc8acae9..30fbe1b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListRolePermissionsOffsetPaginatedResponseContent build() { return new ListRolePermissionsOffsetPaginatedResponseContent( start, limit, total, permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java index a489c2d1..d6db5d08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java @@ -116,5 +116,15 @@ public Builder users(List users) { public ListRoleUsersPaginatedResponseContent build() { return new ListRoleUsersPaginatedResponseContent(next, users, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java index 9fbe5e5f..17f27c3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder roles(List roles) { public ListRolesOffsetPaginatedResponseContent build() { return new ListRolesOffsetPaginatedResponseContent(start, limit, total, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java index a96db829..4ad04a53 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java @@ -285,5 +285,15 @@ public Builder nameFilter(Nullable nameFilter) { public ListRolesRequestParameters build() { return new ListRolesRequestParameters(perPage, page, includeTotals, nameFilter, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java index c1a0726c..8153c03f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder rules(List rules) { public ListRulesOffsetPaginatedResponseContent build() { return new ListRulesOffsetPaginatedResponseContent(start, limit, total, rules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java index 4175ace5..1a82048f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java @@ -406,5 +406,15 @@ public ListRulesRequestParameters build() { return new ListRulesRequestParameters( page, perPage, includeTotals, enabled, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java index 54a43729..5326115b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListSelfServiceProfilesPaginatedResponseContent build() { return new ListSelfServiceProfilesPaginatedResponseContent( start, limit, total, selfServiceProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java index 0416c385..31e7c002 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListSelfServiceProfilesRequestParameters build() { return new ListSelfServiceProfilesRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java index 6c03ca1f..282bd45d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java @@ -37,7 +37,7 @@ private ListTokenExchangeProfileResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListTokenExchangeProfileResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -125,5 +125,15 @@ public Builder tokenExchangeProfiles(List t public ListTokenExchangeProfileResponseContent build() { return new ListTokenExchangeProfileResponseContent(next, tokenExchangeProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java index 38bd827f..457efa66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListUserAttributeProfileRequestParameters build() { return new ListUserAttributeProfileRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java index 065719d3..6ffc4abc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java @@ -98,5 +98,15 @@ public ListUserAttributeProfileTemplateResponseContent build() { return new ListUserAttributeProfileTemplateResponseContent( userAttributeProfileTemplates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java index b22b02d4..c04371b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java @@ -125,5 +125,15 @@ public ListUserAttributeProfilesPaginatedResponseContent build() { return new ListUserAttributeProfilesPaginatedResponseContent( next, userAttributeProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java index 832aba44..f1b82ae9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java @@ -192,5 +192,15 @@ public ListUserAuthenticationMethodsOffsetPaginatedResponseContent build() { return new ListUserAuthenticationMethodsOffsetPaginatedResponseContent( start, limit, total, authenticators, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java index a9968092..ffe8483a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java @@ -109,6 +109,10 @@ public interface IdentifierStage { public interface _FinalStage { ListUserBlocksByIdentifierRequestParameters build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. * If true and Brute Force Protection is disabled, will return an empty list.

    @@ -214,5 +218,17 @@ public ListUserBlocksByIdentifierRequestParameters build() { return new ListUserBlocksByIdentifierRequestParameters( identifier, considerBruteForceEnablement, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java index 1e92989d..ea3a7d9e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java @@ -100,5 +100,15 @@ public Builder blockedFor(List blockedFor) { public ListUserBlocksByIdentifierResponseContent build() { return new ListUserBlocksByIdentifierResponseContent(blockedFor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java index d7df1688..2311b54a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java @@ -134,5 +134,15 @@ public Builder considerBruteForceEnablement( public ListUserBlocksRequestParameters build() { return new ListUserBlocksRequestParameters(considerBruteForceEnablement, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java index 1ac2c96b..4cbf295d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java @@ -99,5 +99,15 @@ public Builder blockedFor(List blockedFor) { public ListUserBlocksResponseContent build() { return new ListUserBlocksResponseContent(blockedFor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java index c6c74c3a..c2ac50d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java @@ -133,5 +133,15 @@ public Builder next(String next) { public ListUserConnectedAccountsResponseContent build() { return new ListUserConnectedAccountsResponseContent(connectedAccounts, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java index ae55daad..d7951189 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder grants(List grants) { public ListUserGrantsOffsetPaginatedResponseContent build() { return new ListUserGrantsOffsetPaginatedResponseContent(start, limit, total, grants, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java index 9ea2cc9f..d8d34a50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java @@ -406,5 +406,15 @@ public ListUserGrantsRequestParameters build() { return new ListUserGrantsRequestParameters( perPage, page, includeTotals, userId, clientId, audience, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java index 9c9d1d39..f9c85851 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListUserOrganizationsOffsetPaginatedResponseContent build() { return new ListUserOrganizationsOffsetPaginatedResponseContent( start, limit, total, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java index 8cc2bba3..ed169985 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListUserPermissionsOffsetPaginatedResponseContent build() { return new ListUserPermissionsOffsetPaginatedResponseContent( start, limit, total, permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java index 80f92430..08619266 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder roles(List roles) { public ListUserRolesOffsetPaginatedResponseContent build() { return new ListUserRolesOffsetPaginatedResponseContent(start, limit, total, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java index 55c248c5..5751bd85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java @@ -124,5 +124,15 @@ public Builder next(String next) { public ListUserSessionsPaginatedResponseContent build() { return new ListUserSessionsPaginatedResponseContent(sessions, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java index c66fe3a6..9ca2159f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java @@ -128,6 +128,10 @@ public interface EmailStage { public interface _FinalStage { ListUsersByEmailRequestParameters build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

    */ @@ -288,5 +292,17 @@ public _FinalStage fields(@Nullable OptionalNullable fields) { public ListUsersByEmailRequestParameters build() { return new ListUsersByEmailRequestParameters(fields, includeFields, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java index 6367d213..3dafb924 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java @@ -192,5 +192,15 @@ public ListUsersOffsetPaginatedResponseContent build() { return new ListUsersOffsetPaginatedResponseContent( start, limit, length, total, users, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java index b1d3bf06..6566d5cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java @@ -98,7 +98,7 @@ public OptionalNullable getIncludeTotals() { } /** - * @return Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code> + * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -110,7 +110,7 @@ public OptionalNullable getSort() { } /** - * @return Connection filter. Only applies when using <code>search_engine=v1</code>. To filter by connection with <code>search_engine=v2|v3</code>, use <code>q=identities.connection:"connection_name"</code> + * @return Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("connection") @@ -146,7 +146,7 @@ public OptionalNullable getIncludeFields() { } /** - * @return Query in <a target='_new' href ='http://www.lucenetutorial.com/lucene-query-syntax.html'>Lucene query string syntax</a>. Some query types cannot be used on metadata fields, for details see <a href='https://auth0.com/docs/users/search/v3/query-syntax#searchable-fields'>Searchable Fields</a>. + * @return Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -415,7 +415,7 @@ public Builder includeTotals(Nullable includeTotals) { } /** - *

    Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code>

    + *

    Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@org.jetbrains.annotations.Nullable OptionalNullable sort) { @@ -449,7 +449,7 @@ public Builder sort(Nullable sort) { } /** - *

    Connection filter. Only applies when using <code>search_engine=v1</code>. To filter by connection with <code>search_engine=v2|v3</code>, use <code>q=identities.connection:"connection_name"</code>

    + *

    Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name"

    */ @JsonSetter(value = "connection", nulls = Nulls.SKIP) public Builder connection(@org.jetbrains.annotations.Nullable OptionalNullable connection) { @@ -551,7 +551,7 @@ public Builder includeFields(Nullable includeFields) { } /** - *

    Query in <a target='_new' href ='http://www.lucenetutorial.com/lucene-query-syntax.html'>Lucene query string syntax</a>. Some query types cannot be used on metadata fields, for details see <a href='https://auth0.com/docs/users/search/v3/query-syntax#searchable-fields'>Searchable Fields</a>.

    + *

    Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.

    */ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@org.jetbrains.annotations.Nullable OptionalNullable q) { @@ -667,5 +667,15 @@ public ListUsersRequestParameters build() { primaryOrder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java index e5b669b7..b3f57912 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java @@ -40,7 +40,7 @@ private ListVerifiableCredentialTemplatesPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("next") @@ -110,7 +110,7 @@ public Builder from(ListVerifiableCredentialTemplatesPaginatedResponseContent ot } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(@Nullable OptionalNullable next) { @@ -157,5 +157,15 @@ public Builder templates(List templates) { public ListVerifiableCredentialTemplatesPaginatedResponseContent build() { return new ListVerifiableCredentialTemplatesPaginatedResponseContent(next, templates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Log.java b/src/main/java/com/auth0/client/mgmt/types/Log.java index 27dd1c32..c717ce51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Log.java +++ b/src/main/java/com/auth0/client/mgmt/types/Log.java @@ -751,5 +751,15 @@ public Log build() { locationInfo, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java b/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java index 06eb8de0..1c1a8b2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java @@ -60,7 +60,7 @@ private LogLocationInfo( } /** - * @return Two-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-2 ISO 3166-1</a> country code. + * @return Two-letter Alpha-2 ISO 3166-1 country code. */ @JsonProperty("country_code") public Optional getCountryCode() { @@ -68,7 +68,7 @@ public Optional getCountryCode() { } /** - * @return Three-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-3 ISO 3166-1</a> country code. + * @return Three-letter Alpha-3 ISO 3166-1 country code. */ @JsonProperty("country_code3") public Optional getCountryCode3() { @@ -108,7 +108,7 @@ public Optional getLongitude() { } /** - * @return Time zone name as found in the <a href="https://www.iana.org/time-zones">tz database</a>. + * @return Time zone name as found in the tz database. */ @JsonProperty("time_zone") public Optional getTimeZone() { @@ -203,7 +203,7 @@ public Builder from(LogLocationInfo other) { } /** - *

    Two-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-2 ISO 3166-1</a> country code.

    + *

    Two-letter Alpha-2 ISO 3166-1 country code.

    */ @JsonSetter(value = "country_code", nulls = Nulls.SKIP) public Builder countryCode(Optional countryCode) { @@ -217,7 +217,7 @@ public Builder countryCode(String countryCode) { } /** - *

    Three-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-3 ISO 3166-1</a> country code.

    + *

    Three-letter Alpha-3 ISO 3166-1 country code.

    */ @JsonSetter(value = "country_code3", nulls = Nulls.SKIP) public Builder countryCode3(Optional countryCode3) { @@ -287,7 +287,7 @@ public Builder longitude(Double longitude) { } /** - *

    Time zone name as found in the <a href="https://www.iana.org/time-zones">tz database</a>.

    + *

    Time zone name as found in the tz database.

    */ @JsonSetter(value = "time_zone", nulls = Nulls.SKIP) public Builder timeZone(Optional timeZone) { @@ -326,5 +326,15 @@ public LogLocationInfo build() { continentCode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java b/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java index d3e305a6..92341001 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java @@ -125,5 +125,15 @@ public Builder ja4(String ja4) { public LogSecurityContext build() { return new LogSecurityContext(ja3, ja4, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java index 4cd6f74d..76ebaf05 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamDatadogResponseSchema build() { return new LogStreamDatadogResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java index 98ca3b2d..3aec249f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java @@ -89,6 +89,10 @@ public interface DatadogRegionStage { public interface _FinalStage { LogStreamDatadogSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -132,5 +136,17 @@ public _FinalStage datadogRegion(@NotNull LogStreamDatadogRegionEnum datadogRegi public LogStreamDatadogSink build() { return new LogStreamDatadogSink(datadogApiKey, datadogRegion, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java index 6a455431..9b657fa6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java @@ -289,5 +289,15 @@ public LogStreamEventBridgeResponseSchema build() { return new LogStreamEventBridgeResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java index 30d1188d..9bb5bad1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java @@ -108,6 +108,10 @@ public interface AwsRegionStage { public interface _FinalStage { LogStreamEventBridgeSink build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    AWS EventBridge partner event source

    */ @@ -180,5 +184,17 @@ public _FinalStage awsPartnerEventSource(Optional awsPartnerEventSource) public LogStreamEventBridgeSink build() { return new LogStreamEventBridgeSink(awsAccountId, awsRegion, awsPartnerEventSource, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java index 269cd1f9..889a7975 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamEventGridResponseSchema build() { return new LogStreamEventGridResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java index f15163dd..b77dd9f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java @@ -129,6 +129,10 @@ public interface AzureResourceGroupStage { public interface _FinalStage { LogStreamEventGridSink build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Partner Topic

    */ @@ -219,5 +223,17 @@ public LogStreamEventGridSink build() { return new LogStreamEventGridSink( azureSubscriptionId, azureRegion, azureResourceGroup, azurePartnerTopic, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java index b970c400..7ce5a4ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java @@ -116,5 +116,15 @@ public Builder name(LogStreamFilterGroupNameEnum name) { public LogStreamFilter build() { return new LogStreamFilter(type, name, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java index 7ca4ad74..b7554522 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamHttpResponseSchema build() { return new LogStreamHttpResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java index 73ec671f..2101e54c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java @@ -136,6 +136,10 @@ public interface HttpEndpointStage { public interface _FinalStage { LogStreamHttpSink build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    HTTP Authorization header

    */ @@ -284,5 +288,17 @@ public LogStreamHttpSink build() { httpCustomHeaders, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java index f1ec52db..a5c2eec4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamMixpanelResponseSchema build() { return new LogStreamMixpanelResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java index 0ca30770..27482603 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java @@ -137,6 +137,10 @@ public interface MixpanelServiceAccountPasswordStage { public interface _FinalStage { LogStreamMixpanelSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -223,5 +227,17 @@ public LogStreamMixpanelSink build() { mixpanelServiceAccountPassword, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java index c77a2906..b1e5e7b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java @@ -132,6 +132,10 @@ public interface MixpanelServiceAccountUsernameStage { public interface _FinalStage { LogStreamMixpanelSinkPatch build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Mixpanel Service Account Password

    */ @@ -226,5 +230,17 @@ public LogStreamMixpanelSinkPatch build() { mixpanelServiceAccountPassword, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java index 7db276a5..a3eb4547 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java @@ -151,5 +151,15 @@ public Builder algorithm(LogStreamPiiAlgorithmEnum algorithm) { public LogStreamPiiConfig build() { return new LogStreamPiiConfig(logFields, method, algorithm, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java index e1f540cd..14af1d9c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamSegmentResponseSchema build() { return new LogStreamSegmentResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java index 26b9a804..3d12642b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java @@ -97,5 +97,15 @@ public Builder segmentWriteKey(String segmentWriteKey) { public LogStreamSegmentSink build() { return new LogStreamSegmentSink(segmentWriteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java index b349b869..7ec6a306 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java @@ -76,6 +76,10 @@ public interface SegmentWriteKeyStage { public interface _FinalStage { LogStreamSegmentSinkWriteKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage segmentWriteKey(@NotNull String segmentWriteKey) { public LogStreamSegmentSinkWriteKey build() { return new LogStreamSegmentSinkWriteKey(segmentWriteKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java index fb9746a5..f0ee836f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamSplunkResponseSchema build() { return new LogStreamSplunkResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java index 46a04652..6d099dbd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java @@ -138,6 +138,10 @@ public interface SplunkSecureStage { public interface _FinalStage { LogStreamSplunkSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -217,5 +221,17 @@ public _FinalStage splunkSecure(boolean splunkSecure) { public LogStreamSplunkSink build() { return new LogStreamSplunkSink(splunkDomain, splunkPort, splunkToken, splunkSecure, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java index 85cd136e..9053b1d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamSumoResponseSchema build() { return new LogStreamSumoResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java index 5b26ddfe..8c8bcaea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java @@ -76,6 +76,10 @@ public interface SumoSourceAddressStage { public interface _FinalStage { LogStreamSumoSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage sumoSourceAddress(@NotNull String sumoSourceAddress) { public LogStreamSumoSink build() { return new LogStreamSumoSink(sumoSourceAddress, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java index db2e7af8..b7d110bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java @@ -742,5 +742,15 @@ public MdlPresentationProperties build() { givenNameNationalCharacter, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java index e9eb5814..f7fd7fb5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java @@ -71,6 +71,10 @@ public interface OrgIso1801351MDlStage { public interface _FinalStage { MdlPresentationRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage orgIso1801351MDl(@NotNull MdlPresentationRequestProperties or public MdlPresentationRequest build() { return new MdlPresentationRequest(orgIso1801351MDl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java index dde37785..fbf53396 100644 --- a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java @@ -71,6 +71,10 @@ public interface OrgIso1801351Stage { public interface _FinalStage { MdlPresentationRequestProperties build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage orgIso1801351(@NotNull MdlPresentationProperties orgIso180135 public MdlPresentationRequestProperties build() { return new MdlPresentationRequestProperties(orgIso1801351, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java index bef1b4f7..3d4f92d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java @@ -139,5 +139,15 @@ public Builder google(NativeSocialLoginGoogle google) { public NativeSocialLogin build() { return new NativeSocialLogin(apple, facebook, google, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java index ba633030..e4dc474f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java @@ -97,5 +97,15 @@ public Builder enabled(Boolean enabled) { public NativeSocialLoginApple build() { return new NativeSocialLoginApple(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java index 0af39c46..46c0195f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java @@ -97,5 +97,15 @@ public Builder enabled(Boolean enabled) { public NativeSocialLoginFacebook build() { return new NativeSocialLoginFacebook(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java index be456d50..34d04485 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java @@ -97,5 +97,15 @@ public Builder enabled(Boolean enabled) { public NativeSocialLoginGoogle build() { return new NativeSocialLoginGoogle(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java index 4a59f950..970cae0a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java @@ -195,5 +195,15 @@ public Builder redirectUri(String redirectUri) { public NetworkAclAction build() { return new NetworkAclAction(block, allow, log, redirect, redirectUri, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java index d58a6348..2b988d3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -279,5 +279,15 @@ public NetworkAclMatch build() { userAgents, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java index 8511f8a3..b32ca5bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java @@ -109,6 +109,10 @@ public interface ScopeStage { public interface _FinalStage { NetworkAclRule build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage match(Optional match); _FinalStage match(NetworkAclMatch match); @@ -186,5 +190,17 @@ public _FinalStage match(Optional match) { public NetworkAclRule build() { return new NetworkAclRule(action, match, notMatch, scope, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java index 6ab74dbe..2c3f4ff8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java @@ -251,5 +251,15 @@ public NetworkAclsResponseContent build() { return new NetworkAclsResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Organization.java b/src/main/java/com/auth0/client/mgmt/types/Organization.java index 4234f9c9..d72df1ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Organization.java +++ b/src/main/java/com/auth0/client/mgmt/types/Organization.java @@ -232,5 +232,15 @@ public Builder tokenQuota(TokenQuota tokenQuota) { public Organization build() { return new Organization(id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java index db58bbc3..3503249e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java @@ -122,5 +122,15 @@ public Builder colors(OrganizationBrandingColors colors) { public OrganizationBranding build() { return new OrganizationBranding(logoUrl, colors, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java index f4935915..2a995e87 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java @@ -95,6 +95,10 @@ public interface PageBackgroundStage { public interface _FinalStage { OrganizationBrandingColors build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -143,5 +147,17 @@ public _FinalStage pageBackground(@NotNull String pageBackground) { public OrganizationBrandingColors build() { return new OrganizationBrandingColors(primary, pageBackground, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java index bb281b93..b1fd2578 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java @@ -246,5 +246,15 @@ public OrganizationClientGrant build() { return new OrganizationClientGrant( id, clientId, audience, scope, organizationUsage, allowAnyOrganization, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java index 83b16d23..ea471066 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java @@ -224,5 +224,15 @@ public OrganizationConnection build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java index 647c645d..a4917e59 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java @@ -126,5 +126,15 @@ public Builder strategy(String strategy) { public OrganizationConnectionInformation build() { return new OrganizationConnectionInformation(name, strategy, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java index aa53440f..ea1130c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java @@ -174,6 +174,10 @@ public interface VerificationHostStage { public interface _FinalStage { OrganizationDiscoveryDomain build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -299,5 +303,17 @@ public OrganizationDiscoveryDomain build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java index e9d82484..67ee8b11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java @@ -224,5 +224,15 @@ public OrganizationEnabledConnection build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java index 4343fb85..ad0923c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java @@ -464,5 +464,15 @@ public OrganizationInvitation build() { ticketId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java index 8431ecd1..2f2e6d30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java @@ -76,6 +76,10 @@ public interface EmailStage { public interface _FinalStage { OrganizationInvitationInvitee build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage email(@NotNull String email) { public OrganizationInvitationInvitee build() { return new OrganizationInvitationInvitee(email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java index c144190b..443f5b4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java @@ -76,6 +76,10 @@ public interface NameStage { public interface _FinalStage { OrganizationInvitationInviter build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage name(@NotNull String name) { public OrganizationInvitationInviter build() { return new OrganizationInvitationInviter(name, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java index 4ffc171d..517224b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java @@ -214,5 +214,15 @@ public Builder roles(List roles) { public OrganizationMember build() { return new OrganizationMember(userId, picture, name, email, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java index fe271a84..426702ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java @@ -126,5 +126,15 @@ public Builder name(String name) { public OrganizationMemberRole build() { return new OrganizationMemberRole(id, name, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java b/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java index 2b5d425e..a41ac21f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java @@ -120,5 +120,15 @@ public Builder body(PhoneTemplateBody body) { public PartialPhoneTemplateContent build() { return new PartialPhoneTemplateContent(from, body, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java index 2e1b9f47..4a3ad584 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java @@ -380,5 +380,15 @@ public PatchClientCredentialResponseContent build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java index 7911c0f9..5b91db9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java @@ -99,5 +99,15 @@ public Builder akamaiEnabled(Boolean akamaiEnabled) { public PatchSupplementalSignalsResponseContent build() { return new PatchSupplementalSignalsResponseContent(akamaiEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java index a92f9655..f889d30a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java @@ -96,6 +96,10 @@ public interface PermissionNameStage { public interface _FinalStage { PermissionRequestPayload build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -145,5 +149,17 @@ public _FinalStage permissionName(@NotNull String permissionName) { public PermissionRequestPayload build() { return new PermissionRequestPayload(resourceServerIdentifier, permissionName, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java b/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java index 8283fb3c..e6277059 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java @@ -191,5 +191,15 @@ public PermissionsResponsePayload build() { return new PermissionsResponsePayload( resourceServerIdentifier, permissionName, resourceServerName, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java index b89b0296..080c3e3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java @@ -147,5 +147,15 @@ public Builder signup(SignupVerified signup) { public PhoneAttribute build() { return new PhoneAttribute(identifier, profileRequired, signup, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java index dd458718..b479713a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java @@ -166,6 +166,10 @@ public interface NameStage { public interface _FinalStage { PhoneProviderSchemaMasked build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -374,5 +378,17 @@ public PhoneProviderSchemaMasked build() { return new PhoneProviderSchemaMasked( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java index b716bbf5..6c24726f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java @@ -154,6 +154,10 @@ public interface DisabledStage { public interface _FinalStage { PhoneTemplate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -276,5 +280,17 @@ public _FinalStage channel(Optional channel) { public PhoneTemplate build() { return new PhoneTemplate(id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java index 32949a80..1c6a81fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java @@ -125,5 +125,15 @@ public Builder voice(String voice) { public PhoneTemplateBody build() { return new PhoneTemplateBody(text, voice, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java index e6f6934f..46f5c84a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java @@ -145,5 +145,15 @@ public Builder body(PhoneTemplateBody body) { public PhoneTemplateContent build() { return new PhoneTemplateContent(syntax, from, body, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java index 17054e06..f180c08f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java @@ -380,5 +380,15 @@ public PostClientCredentialResponseContent build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java index 123f8d62..becc5f20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java @@ -146,6 +146,10 @@ public interface PemStage { public interface _FinalStage { PublicKeyCredential build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -299,5 +303,17 @@ public PublicKeyCredential build() { return new PublicKeyCredential( credentialType, name, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java index cf85639b..6aa4dbbc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java +++ b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java @@ -251,5 +251,15 @@ public RefreshTokenDevice build() { return new RefreshTokenDevice( initialIp, initialAsn, initialUserAgent, lastIp, lastAsn, lastUserAgent, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java index 424d4915..f30afe4f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java +++ b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java @@ -126,5 +126,15 @@ public Builder scopes(String scopes) { public RefreshTokenResourceServer build() { return new RefreshTokenResourceServer(audience, scopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java index 21aa1565..2becee7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java @@ -477,5 +477,15 @@ public RefreshTokenResponseContent build() { lastExchangedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java index e20b46a0..09ecfbeb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java @@ -99,5 +99,15 @@ public Builder recoveryCode(String recoveryCode) { public RegenerateUsersRecoveryCodeResponseContent build() { return new RegenerateUsersRecoveryCodeResponseContent(recoveryCode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java index 214459bc..4e8a71ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java @@ -154,6 +154,10 @@ public interface DisabledStage { public interface _FinalStage { ResetPhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -277,5 +281,17 @@ public ResetPhoneTemplateResponseContent build() { return new ResetPhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java index 6a203528..29d88015 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java @@ -737,5 +737,15 @@ public ResourceServer build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java index 96b577cd..b3f8e753 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java @@ -103,6 +103,10 @@ public interface RequiredStage { public interface _FinalStage { ResourceServerProofOfPossession build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage requiredFor(Optional requiredFor); _FinalStage requiredFor(ResourceServerProofOfPossessionRequiredForEnum requiredFor); @@ -165,5 +169,17 @@ public _FinalStage requiredFor(Optional additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossessionRequiredForEnum.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossessionRequiredForEnum.java index 2a47dfac..8ba4d205 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossessionRequiredForEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossessionRequiredForEnum.java @@ -10,9 +10,6 @@ public final class ResourceServerProofOfPossessionRequiredForEnum { public static final ResourceServerProofOfPossessionRequiredForEnum ALL_CLIENTS = new ResourceServerProofOfPossessionRequiredForEnum(Value.ALL_CLIENTS, "all_clients"); - public static final ResourceServerProofOfPossessionRequiredForEnum CONFIDENTIAL_CLIENTS = - new ResourceServerProofOfPossessionRequiredForEnum(Value.CONFIDENTIAL_CLIENTS, "confidential_clients"); - public static final ResourceServerProofOfPossessionRequiredForEnum PUBLIC_CLIENTS = new ResourceServerProofOfPossessionRequiredForEnum(Value.PUBLIC_CLIENTS, "public_clients"); @@ -51,8 +48,6 @@ public T visit(Visitor visitor) { switch (value) { case ALL_CLIENTS: return visitor.visitAllClients(); - case CONFIDENTIAL_CLIENTS: - return visitor.visitConfidentialClients(); case PUBLIC_CLIENTS: return visitor.visitPublicClients(); case UNKNOWN: @@ -66,8 +61,6 @@ public static ResourceServerProofOfPossessionRequiredForEnum valueOf(String valu switch (value) { case "all_clients": return ALL_CLIENTS; - case "confidential_clients": - return CONFIDENTIAL_CLIENTS; case "public_clients": return PUBLIC_CLIENTS; default: @@ -78,8 +71,6 @@ public static ResourceServerProofOfPossessionRequiredForEnum valueOf(String valu public enum Value { PUBLIC_CLIENTS, - CONFIDENTIAL_CLIENTS, - ALL_CLIENTS, UNKNOWN @@ -88,8 +79,6 @@ public enum Value { public interface Visitor { T visitPublicClients(); - T visitConfidentialClients(); - T visitAllClients(); T visitUnknown(String unknownType); 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 483429c0..625eb5f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java @@ -90,6 +90,10 @@ public interface ValueStage { public interface _FinalStage { ResourceServerScope build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    User-friendly description of this scope.

    */ @@ -152,5 +156,17 @@ public _FinalStage description(Optional description) { public ResourceServerScope build() { return new ResourceServerScope(value, description, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java index 4f2b6869..cfcde84b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java @@ -117,5 +117,15 @@ public Builder client(ResourceServerSubjectTypeAuthorizationClient client) { public ResourceServerSubjectTypeAuthorization build() { return new ResourceServerSubjectTypeAuthorization(user, client, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java index 57ce7692..0895cbea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java @@ -94,5 +94,15 @@ public Builder policy(ResourceServerSubjectTypeAuthorizationClientPolicyEnum pol public ResourceServerSubjectTypeAuthorizationClient build() { return new ResourceServerSubjectTypeAuthorizationClient(policy, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java index ff6983cb..d2ce3c09 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java @@ -94,5 +94,15 @@ public Builder policy(ResourceServerSubjectTypeAuthorizationUserPolicyEnum polic public ResourceServerSubjectTypeAuthorizationUser build() { return new ResourceServerSubjectTypeAuthorizationUser(policy, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java index 40425e4b..a08068ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java @@ -85,6 +85,10 @@ public interface EncryptionKeyStage { public interface _FinalStage { ResourceServerTokenEncryption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage encryptionKey(@NotNull ResourceServerTokenEncryptionKey encry public ResourceServerTokenEncryption build() { return new ResourceServerTokenEncryption(format, encryptionKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java index 6715e0f2..99f7ba6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java @@ -118,6 +118,10 @@ public interface PemStage { public interface _FinalStage { ResourceServerTokenEncryptionKey build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the encryption key.

    */ @@ -220,5 +224,17 @@ public _FinalStage name(Optional name) { public ResourceServerTokenEncryptionKey build() { return new ResourceServerTokenEncryptionKey(name, alg, kid, pem, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java index 7c0ebc5d..d65c1c8b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java @@ -128,5 +128,15 @@ public Builder preserveRefreshTokens(Boolean preserveRefreshTokens) { public RevokeUserAccessRequestContent build() { return new RevokeUserAccessRequestContent(sessionId, preserveRefreshTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java index 480903d0..166b2049 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java @@ -94,6 +94,10 @@ public interface KidStage { public interface _FinalStage { RevokedSigningKeysResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage kid(@NotNull String kid) { public RevokedSigningKeysResponseContent build() { return new RevokedSigningKeysResponseContent(cert, kid, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Role.java b/src/main/java/com/auth0/client/mgmt/types/Role.java index 6fb817d6..f0b7d092 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Role.java +++ b/src/main/java/com/auth0/client/mgmt/types/Role.java @@ -157,5 +157,15 @@ public Builder description(String description) { public Role build() { return new Role(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RoleUser.java b/src/main/java/com/auth0/client/mgmt/types/RoleUser.java index 7e84435c..a3cdbef9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RoleUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/RoleUser.java @@ -189,5 +189,15 @@ public Builder email(String email) { public RoleUser build() { return new RoleUser(userId, picture, name, email, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java index adf39888..5f173c60 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java @@ -419,5 +419,15 @@ public RollbackActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java index 8f14ada6..af4f13d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public RotateClientSecretResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java index 82394286..7bccf4e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java @@ -93,5 +93,15 @@ public Builder signingAlg(RotateConnectionKeysSigningAlgEnum signingAlg) { public RotateConnectionKeysRequestContent build() { return new RotateConnectionKeysRequestContent(signingAlg, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java index ffbdd5ba..816c1a3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java @@ -210,6 +210,10 @@ public interface ThumbprintStage { public interface _FinalStage { RotateConnectionsKeysResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -418,5 +422,17 @@ public RotateConnectionsKeysResponseContent build() { return new RotateConnectionsKeysResponseContent( kid, cert, pkcs, next, fingerprint, thumbprint, algorithm, keyUse, subjectDn, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java index 1ab5d2e5..7e410023 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java @@ -94,6 +94,10 @@ public interface KidStage { public interface _FinalStage { RotateSigningKeysResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage kid(@NotNull String kid) { public RotateSigningKeysResponseContent build() { return new RotateSigningKeysResponseContent(cert, kid, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Rule.java b/src/main/java/com/auth0/client/mgmt/types/Rule.java index f2dabb28..ab4bc5ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Rule.java +++ b/src/main/java/com/auth0/client/mgmt/types/Rule.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public Rule build() { return new Rule(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java b/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java index 356148ac..5dffff38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java @@ -97,5 +97,15 @@ public Builder key(String key) { public RulesConfig build() { return new RulesConfig(key, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java b/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java index 982709a3..1203d68d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java @@ -125,5 +125,15 @@ public Builder scim(String scim) { public ScimMappingItem build() { return new ScimMappingItem(auth0, scim, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java b/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java index 8bfce20a..306e8a00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java @@ -220,5 +220,15 @@ public Builder lastUsedAt(String lastUsedAt) { public ScimTokenItem build() { return new ScimTokenItem(tokenId, scopes, createdAt, validUntil, lastUsedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java index 94f41df4..6e22be29 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java @@ -119,7 +119,7 @@ public Optional getBranding() { } /** - * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate] + * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate] */ @JsonProperty("allowed_strategies") public Optional> getAllowedStrategies() { @@ -314,7 +314,7 @@ public Builder branding(SelfServiceProfileBrandingProperties branding) { } /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) public Builder allowedStrategies(Optional> allowedStrategies) { @@ -354,5 +354,15 @@ public SelfServiceProfile build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java index a7b65cd3..41d81781 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java @@ -70,6 +70,10 @@ public interface PrimaryStage { public interface _FinalStage { SelfServiceProfileBrandingColors build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage primary(@NotNull String primary) { public SelfServiceProfileBrandingColors build() { return new SelfServiceProfileBrandingColors(primary, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java index 3ece91ff..bc883f80 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java @@ -117,5 +117,15 @@ public Builder colors(SelfServiceProfileBrandingColors colors) { public SelfServiceProfileBrandingProperties build() { return new SelfServiceProfileBrandingProperties(logoUrl, colors, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java index 00ce38c8..19cd02a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java @@ -72,7 +72,7 @@ public Optional getDisplayName() { } /** - * @return <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.) + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) */ @JsonProperty("is_domain_connection") public Optional getIsDomainConnection() { @@ -80,7 +80,7 @@ public Optional getIsDomainConnection() { } /** - * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.) + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) */ @JsonProperty("show_as_button") public Optional getShowAsButton() { @@ -155,6 +155,10 @@ public interface NameStage { public interface _FinalStage { SelfServiceProfileSsoTicketConnectionConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Connection name used in the new universal login experience

    */ @@ -163,14 +167,14 @@ public interface _FinalStage { _FinalStage displayName(String displayName); /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ _FinalStage showAsButton(Optional showAsButton); @@ -281,7 +285,7 @@ public _FinalStage metadata(Optional>> meta } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -291,7 +295,7 @@ public _FinalStage showAsButton(Boolean showAsButton) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) @@ -301,7 +305,7 @@ public _FinalStage showAsButton(Optional showAsButton) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -311,7 +315,7 @@ public _FinalStage isDomainConnection(Boolean isDomainConnection) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) @@ -345,5 +349,17 @@ public SelfServiceProfileSsoTicketConnectionConfig build() { return new SelfServiceProfileSsoTicketConnectionConfig( name, displayName, isDomainConnection, showAsButton, metadata, options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java index ecd00be8..488c8563 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java @@ -222,5 +222,15 @@ public SelfServiceProfileSsoTicketConnectionOptions build() { return new SelfServiceProfileSsoTicketConnectionOptions( iconUrl, domainAliases, idpinitiated, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java index 94a640d7..df9496f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java @@ -73,6 +73,10 @@ public interface DomainVerificationStage { public interface _FinalStage { SelfServiceProfileSsoTicketDomainAliasesConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -102,5 +106,17 @@ public _FinalStage domainVerification( public SelfServiceProfileSsoTicketDomainAliasesConfig build() { return new SelfServiceProfileSsoTicketDomainAliasesConfig(domainVerification, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java index b8428596..617b8d17 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java @@ -108,6 +108,10 @@ public interface OrganizationIdStage { public interface _FinalStage { SelfServiceProfileSsoTicketEnabledOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.

    */ @@ -201,5 +205,17 @@ public SelfServiceProfileSsoTicketEnabledOrganization build() { return new SelfServiceProfileSsoTicketEnabledOrganization( organizationId, assignMembershipOnLogin, showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java index a9454e97..a00467d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java @@ -77,6 +77,10 @@ public interface SyncUsersStage { public interface _FinalStage { SelfServiceProfileSsoTicketGoogleWorkspaceConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage syncUsers(boolean syncUsers) { public SelfServiceProfileSsoTicketGoogleWorkspaceConfig build() { return new SelfServiceProfileSsoTicketGoogleWorkspaceConfig(syncUsers, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java index dff7baef..59ef548f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java @@ -52,7 +52,7 @@ public Optional getEnabled() { } /** - * @return Default application <code>client_id</code> user is redirected to after validated SAML response + * @return Default application client_id user is redirected to after validated SAML response */ @JsonProperty("client_id") public Optional getClientId() { @@ -65,7 +65,7 @@ public Optional getCl } /** - * @return Query string options to customize the behaviour for OpenID Connect when <code>idpinitiated.client_protocol</code> is <code>oauth2</code>. Allowed parameters: <code>redirect_uri</code>, <code>scope</code>, <code>response_type</code>. For example, <code>redirect_uri=https://jwt.io&scope=openid email&response_type=token</code> + * @return Query string options to customize the behaviour for OpenID Connect when idpinitiated.client_protocol is oauth2. Allowed parameters: redirect_uri, scope, response_type. For example, redirect_uri=https://jwt.io&scope=openid email&response_type=token */ @JsonProperty("client_authorizequery") public Optional getClientAuthorizequery() { @@ -143,7 +143,7 @@ public Builder enabled(Boolean enabled) { } /** - *

    Default application <code>client_id</code> user is redirected to after validated SAML response

    + *

    Default application client_id user is redirected to after validated SAML response

    */ @JsonSetter(value = "client_id", nulls = Nulls.SKIP) public Builder clientId(Optional clientId) { @@ -169,7 +169,7 @@ public Builder clientProtocol(SelfServiceProfileSsoTicketIdpInitiatedClientProto } /** - *

    Query string options to customize the behaviour for OpenID Connect when <code>idpinitiated.client_protocol</code> is <code>oauth2</code>. Allowed parameters: <code>redirect_uri</code>, <code>scope</code>, <code>response_type</code>. For example, <code>redirect_uri=https://jwt.io&scope=openid email&response_type=token</code>

    + *

    Query string options to customize the behaviour for OpenID Connect when idpinitiated.client_protocol is oauth2. Allowed parameters: redirect_uri, scope, response_type. For example, redirect_uri=https://jwt.io&scope=openid email&response_type=token

    */ @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) public Builder clientAuthorizequery(Optional clientAuthorizequery) { @@ -186,5 +186,15 @@ public SelfServiceProfileSsoTicketIdpInitiatedOptions build() { return new SelfServiceProfileSsoTicketIdpInitiatedOptions( enabled, clientId, clientProtocol, clientAuthorizequery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java index 158f2360..ddebb9a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java @@ -189,5 +189,15 @@ public SelfServiceProfileSsoTicketProvisioningConfig build() { return new SelfServiceProfileSsoTicketProvisioningConfig( scopes, googleWorkspace, tokenLifetime, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java index 0228f141..c53f1418 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java @@ -113,6 +113,10 @@ public interface IsOptionalStage { public interface _FinalStage { SelfServiceProfileUserAttribute build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -176,5 +180,17 @@ public _FinalStage isOptional(boolean isOptional) { public SelfServiceProfileUserAttribute build() { return new SelfServiceProfileUserAttribute(name, description, isOptional, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java index 0f3409d5..13fc734e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java @@ -151,5 +151,15 @@ public Builder type(String type) { public SessionAuthenticationSignal build() { return new SessionAuthenticationSignal(name, timestamp, type, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java index d12ab5d8..fe3d2397 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java @@ -99,5 +99,15 @@ public Builder methods(List methods) { public SessionAuthenticationSignals build() { return new SessionAuthenticationSignals(methods, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java index 1d841f73..c323ea0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java @@ -97,5 +97,15 @@ public Builder clientId(String clientId) { public SessionClientMetadata build() { return new SessionClientMetadata(clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java index 459ef088..e82c18f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java @@ -92,5 +92,15 @@ public Builder mode(SessionCookieMetadataModeEnum mode) { public SessionCookieMetadata build() { return new SessionCookieMetadata(mode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java b/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java index 68e8bd00..d5b66a27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java @@ -70,6 +70,10 @@ public interface ModeStage { public interface _FinalStage { SessionCookieSchema build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage mode(@NotNull SessionCookieModeEnum mode) { public SessionCookieSchema build() { return new SessionCookieSchema(mode, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java index 1da1dcca..577e1ae5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java @@ -302,5 +302,15 @@ public SessionDeviceMetadata build() { return new SessionDeviceMetadata( initialUserAgent, initialIp, initialAsn, lastUserAgent, lastIp, lastAsn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java index d9d9ddc1..49a66ea1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java @@ -460,5 +460,15 @@ public SessionResponseContent build() { sessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java index 41989a25..cc67148f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java @@ -100,5 +100,15 @@ public Builder keys(List keys) { public SetCustomSigningKeysResponseContent build() { return new SetCustomSigningKeysResponseContent(keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java index 6932d519..f3fe4d50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java @@ -261,6 +261,10 @@ public interface TemplateStage { public interface _FinalStage { SetEmailTemplateRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -776,5 +780,17 @@ public SetEmailTemplateRequestContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java index 12b45012..4b571da8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java @@ -261,6 +261,10 @@ public interface TemplateStage { public interface _FinalStage { SetEmailTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -776,5 +780,17 @@ public SetEmailTemplateResponseContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java index b0e6d7cf..6e834e80 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public SetGuardianFactorDuoSettingsResponseContent build() { return new SetGuardianFactorDuoSettingsResponseContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java index 1d1d7dba..6024dccc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java @@ -101,5 +101,15 @@ public Builder messageTypes(List messa public SetGuardianFactorPhoneMessageTypesResponseContent build() { return new SetGuardianFactorPhoneMessageTypesResponseContent(messageTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java index 2fb06531..24ca6daa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorPhoneTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorPhoneTemplatesResponseContent build() { return new SetGuardianFactorPhoneTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java index 7cebe40d..e504e2b3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java @@ -75,6 +75,10 @@ public interface EnabledStage { public interface _FinalStage { SetGuardianFactorResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -108,5 +112,17 @@ public _FinalStage enabled(boolean enabled) { public SetGuardianFactorResponseContent build() { return new SetGuardianFactorResponseContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java index 7f1280a4..efe4cbbe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorSmsTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorSmsTemplatesResponseContent build() { return new SetGuardianFactorSmsTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java index c7ca9405..7608469a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public SetGuardianFactorsProviderPhoneResponseContent build() { return new SetGuardianFactorsProviderPhoneResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java index 3e0e6cfa..4adb8912 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderPhoneTwilioResponseContent build() { return new SetGuardianFactorsProviderPhoneTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java index 307f15ec..dc94769d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java @@ -149,5 +149,15 @@ public SetGuardianFactorsProviderPushNotificationApnsResponseContent build() { return new SetGuardianFactorsProviderPushNotificationApnsResponseContent( sandbox, bundleId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java index c7713b53..9a4efdc1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java @@ -94,5 +94,15 @@ public Builder provider(GuardianFactorsProviderPushNotificationProviderDataEnum public SetGuardianFactorsProviderPushNotificationResponseContent build() { return new SetGuardianFactorsProviderPushNotificationResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java index 0e2aff51..315f2c3c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java @@ -356,5 +356,15 @@ public SetGuardianFactorsProviderPushNotificationSnsResponseContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java index 712e9c55..6036ba31 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public SetGuardianFactorsProviderSmsResponseContent build() { return new SetGuardianFactorsProviderSmsResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java index 53076ea2..fa876bcf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent build() { return new SetGuardianFactorsProviderSmsTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java index 63eb55ef..a5d7e845 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java @@ -126,6 +126,10 @@ public interface RuleStage { public interface _FinalStage { SetNetworkAclRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -194,5 +198,17 @@ public _FinalStage rule(@NotNull NetworkAclRule rule) { public SetNetworkAclRequestContent build() { return new SetNetworkAclRequestContent(description, active, priority, rule, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java index 2f9b88e1..ddb6e7e2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java @@ -251,5 +251,15 @@ public SetNetworkAclsResponseContent build() { return new SetNetworkAclsResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java index fe5071d0..fe34bbee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java @@ -76,6 +76,10 @@ public interface ValueStage { public interface _FinalStage { SetRulesConfigRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage value(@NotNull String value) { public SetRulesConfigRequestContent build() { return new SetRulesConfigRequestContent(value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java index 26d5058a..c4194eca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java @@ -94,6 +94,10 @@ public interface ValueStage { public interface _FinalStage { SetRulesConfigResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage value(@NotNull String value) { public SetRulesConfigResponseContent build() { return new SetRulesConfigResponseContent(key, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java index 119d70fa..7721cad9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java @@ -241,6 +241,10 @@ public interface TypeStage { public interface _FinalStage { SetUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The ID of the newly created authentication method (automatically generated by the application)

    */ @@ -626,5 +630,17 @@ public SetUserAuthenticationMethodResponseContent build() { createdAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java index a070ffc9..c7af2a1c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java @@ -143,6 +143,10 @@ public interface TypeStage { public interface _FinalStage { SetUserAuthenticationMethods build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage preferredAuthenticationMethod( Optional preferredAuthenticationMethod); @@ -314,5 +318,17 @@ public SetUserAuthenticationMethods build() { return new SetUserAuthenticationMethods( type, preferredAuthenticationMethod, name, phoneNumber, email, totpSecret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java index 657e7445..86f9b33c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java +++ b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java @@ -248,6 +248,10 @@ public interface ThumbprintStage { public interface _FinalStage { SigningKeys build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -548,5 +552,17 @@ public SigningKeys build() { revokedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java b/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java index 1046a907..b1df4857 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java @@ -91,5 +91,15 @@ public Builder status(SignupStatusEnum status) { public SignupSchema build() { return new SignupSchema(status, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java b/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java index 8201e8d6..4e38b84d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java +++ b/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java @@ -91,5 +91,15 @@ public Builder active(Boolean active) { public SignupVerification build() { return new SignupVerification(active, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java b/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java index b4ea5c8b..2dd53934 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java +++ b/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java @@ -116,5 +116,15 @@ public Builder verification(SignupVerification verification) { public SignupVerified build() { return new SignupVerified(status, verification, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java index bdadd4d6..5c58bf2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java @@ -127,5 +127,15 @@ public Builder rate(Integer rate) { public SuspiciousIpThrottlingPreLoginStage build() { return new SuspiciousIpThrottlingPreLoginStage(maxAttempts, rate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java index 255f2881..d3dabddd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java @@ -127,5 +127,15 @@ public Builder rate(Integer rate) { public SuspiciousIpThrottlingPreUserRegistrationStage build() { return new SuspiciousIpThrottlingPreUserRegistrationStage(maxAttempts, rate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java index 9aeba1e6..8a22c967 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java @@ -117,5 +117,15 @@ public Builder preUserRegistration(SuspiciousIpThrottlingPreUserRegistrationStag public SuspiciousIpThrottlingStage build() { return new SuspiciousIpThrottlingStage(preLogin, preUserRegistration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java b/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java index 5439ecd6..39cc2b27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java @@ -98,5 +98,15 @@ public Builder rpLogoutEndSessionEndpointDiscovery(Boolean rpLogoutEndSessionEnd public TenantOidcLogoutSettings build() { return new TenantOidcLogoutSettings(rpLogoutEndSessionEndpointDiscovery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java index 2aaf5448..f5a0b9f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java @@ -122,5 +122,15 @@ public Builder mask(String mask) { public TenantSettingsDeviceFlow build() { return new TenantSettingsDeviceFlow(charset, mask, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java index 906837dc..67e78417 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java @@ -40,7 +40,7 @@ private TenantSettingsErrorPage( } /** - * @return Custom Error HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported). + * @return Custom Error HTML (Liquid syntax is supported). */ @JsonProperty("html") public Optional getHtml() { @@ -113,7 +113,7 @@ public Builder from(TenantSettingsErrorPage other) { } /** - *

    Custom Error HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported).

    + *

    Custom Error HTML (Liquid syntax is supported).

    */ @JsonSetter(value = "html", nulls = Nulls.SKIP) public Builder html(Optional html) { @@ -157,5 +157,15 @@ public Builder url(String url) { public TenantSettingsErrorPage build() { return new TenantSettingsErrorPage(html, showLogLink, url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java index 29fb8040..8f91d41a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java @@ -344,7 +344,7 @@ public Optional getGenaiTrial() { } /** - * @return Whether third-party developers can <a href="https://auth0.com/docs/api-auth/dynamic-client-registration">dynamically register</a> applications for your APIs (true) or not (false). This flag enables dynamic client registration. + * @return Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration. */ @JsonProperty("enable_dynamic_client_registration") public Optional getEnableDynamicClientRegistration() { @@ -915,7 +915,7 @@ public Builder genaiTrial(Boolean genaiTrial) { } /** - *

    Whether third-party developers can <a href="https://auth0.com/docs/api-auth/dynamic-client-registration">dynamically register</a> applications for your APIs (true) or not (false). This flag enables dynamic client registration.

    + *

    Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration.

    */ @JsonSetter(value = "enable_dynamic_client_registration", nulls = Nulls.SKIP) public Builder enableDynamicClientRegistration(Optional enableDynamicClientRegistration) { @@ -1006,5 +1006,15 @@ public TenantSettingsFlags build() { customDomainsProvisioning, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java index 7b6af4a8..98b386c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java @@ -42,7 +42,7 @@ public Optional getEnabled() { } /** - * @return Custom Guardian HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported). + * @return Custom Guardian HTML (Liquid syntax is supported). */ @JsonProperty("html") public Optional getHtml() { @@ -110,7 +110,7 @@ public Builder enabled(Boolean enabled) { } /** - *

    Custom Guardian HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported).

    + *

    Custom Guardian HTML (Liquid syntax is supported).

    */ @JsonSetter(value = "html", nulls = Nulls.SKIP) public Builder html(Optional html) { @@ -126,5 +126,15 @@ public Builder html(String html) { public TenantSettingsGuardianPage build() { return new TenantSettingsGuardianPage(enabled, html, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java index 4fce8b38..61de9b90 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java @@ -97,5 +97,15 @@ public Builder enableEndpointAliases(Boolean enableEndpointAliases) { public TenantSettingsMtls build() { return new TenantSettingsMtls(enableEndpointAliases, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java index 3d254ec4..e65d44ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java @@ -42,7 +42,7 @@ public Optional getEnabled() { } /** - * @return Custom change password HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> supported). + * @return Custom change password HTML (Liquid syntax supported). */ @JsonProperty("html") public Optional getHtml() { @@ -110,7 +110,7 @@ public Builder enabled(Boolean enabled) { } /** - *

    Custom change password HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> supported).

    + *

    Custom change password HTML (Liquid syntax supported).

    */ @JsonSetter(value = "html", nulls = Nulls.SKIP) public Builder html(Optional html) { @@ -126,5 +126,15 @@ public Builder html(String html) { public TenantSettingsPasswordPage build() { return new TenantSettingsPasswordPage(enabled, html, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java index ae2da26d..0795c4c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java @@ -98,5 +98,15 @@ public Builder oidcLogoutPromptEnabled(Boolean oidcLogoutPromptEnabled) { public TenantSettingsSessions build() { return new TenantSettingsSessions(oidcLogoutPromptEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java index b6ffac63..21aa610e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java @@ -101,5 +101,15 @@ public Builder payload(String key, Object value) { public TestActionRequestContent build() { return new TestActionRequestContent(payload, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java index d7f2a85a..7ff4a81d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java @@ -91,5 +91,15 @@ public Builder payload(Map payload) { public TestActionResponseContent build() { return new TestActionResponseContent(payload, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java index 9393013d..9b0d0c99 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java @@ -90,6 +90,10 @@ public interface SuccessStage { public interface _FinalStage { TestCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Message describing the operation status.

    */ @@ -152,5 +156,17 @@ public _FinalStage message(Optional message) { public TestCustomDomainResponseContent build() { return new TestCustomDomainResponseContent(success, message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java index 02f538da..bddbddf7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java @@ -277,5 +277,15 @@ public TokenExchangeProfileResponseContent build() { return new TokenExchangeProfileResponseContent( id, name, subjectTokenType, actionId, type, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java index 7d947100..3ff9cf6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public TokenExchangeProfilesListRequest build() { return new TokenExchangeProfilesListRequest(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java index d7cf28e4..cdd58419 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java @@ -70,6 +70,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { TokenQuota build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public TokenQuota build() { return new TokenQuota(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java index 920f2889..ed43389d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java @@ -157,5 +157,15 @@ public Builder perHour(Integer perHour) { public TokenQuotaClientCredentials build() { return new TokenQuotaClientCredentials(enforce, perDay, perHour, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java index d343e5b8..25f19bdc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java @@ -71,6 +71,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { TokenQuotaConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public TokenQuotaConfiguration build() { return new TokenQuotaConfiguration(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java index 8468c49e..d687bf68 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java @@ -107,6 +107,10 @@ public interface SidStage { public interface _FinalStage { TwilioProviderConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage defaultFrom(Optional defaultFrom); _FinalStage defaultFrom(String defaultFrom); @@ -207,5 +211,17 @@ public _FinalStage defaultFrom(Optional defaultFrom) { public TwilioProviderConfiguration build() { return new TwilioProviderConfiguration(defaultFrom, mssid, sid, deliveryMethods, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java index 195d7374..15169ba3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java @@ -70,6 +70,10 @@ public interface AuthTokenStage { public interface _FinalStage { TwilioProviderCredentials build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage authToken(@NotNull String authToken) { public TwilioProviderCredentials build() { return new TwilioProviderCredentials(authToken, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java index d8d2c5e9..30398cc9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java @@ -94,5 +94,15 @@ public Builder bindings(List bindings) { public UpdateActionBindingsResponseContent build() { return new UpdateActionBindingsResponseContent(bindings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java index a34b51e9..11c9579a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java @@ -418,5 +418,15 @@ public UpdateActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java index 204f7859..8cc20a3f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java @@ -288,5 +288,15 @@ public UpdateActionRequestContent build() { return new UpdateActionRequestContent( name, supportedTriggers, code, dependencies, runtime, secrets, modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java index cea3d6c3..d3e18f46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java @@ -598,5 +598,15 @@ public UpdateActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java index 9121be94..bd4b8c21 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java @@ -338,5 +338,15 @@ public UpdateAculResponseContent build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java index 564d4a40..ae05cac8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java @@ -283,5 +283,15 @@ public UpdateAttackProtectionCaptchaResponseContent build() { simpleCaptcha, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java index e1feae1a..78fac427 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java @@ -235,5 +235,15 @@ public UpdateBotDetectionSettingsResponseContent build() { monitoringModeEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java index a17710ac..99e05567 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java @@ -155,5 +155,15 @@ public Builder pageBackground(UpdateBrandingPageBackground pageBackground) { public UpdateBrandingColors build() { return new UpdateBrandingColors(primary, pageBackground, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java index 1da49632..6060d869 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java @@ -130,5 +130,15 @@ public Builder url(com.auth0.client.mgmt.core.Nullable url) { public UpdateBrandingFont build() { return new UpdateBrandingFont(url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java index b99b25df..c7a23470 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java @@ -167,6 +167,10 @@ public interface NameStage { public interface _FinalStage { UpdateBrandingPhoneProviderResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -375,5 +379,17 @@ public UpdateBrandingPhoneProviderResponseContent build() { return new UpdateBrandingPhoneProviderResponseContent( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java index ad7fd7d6..a83c4e24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java @@ -300,5 +300,15 @@ public Builder font(com.auth0.client.mgmt.core.Nullable font public UpdateBrandingRequestContent build() { return new UpdateBrandingRequestContent(colors, faviconUrl, logoUrl, font, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java index f1a68fe2..4f4c3266 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java @@ -177,5 +177,15 @@ public Builder font(BrandingFont font) { public UpdateBrandingResponseContent build() { return new UpdateBrandingResponseContent(colors, faviconUrl, logoUrl, font, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java index fe37d6c3..80d8ee4d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java @@ -176,6 +176,10 @@ public interface WidgetStage { public interface _FinalStage { UpdateBrandingThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -283,5 +287,17 @@ public UpdateBrandingThemeResponseContent build() { return new UpdateBrandingThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java index 056a6b7d..59c72027 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>. + * Possible values: block, user_notification, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -67,7 +67,7 @@ public Optional> getShields() { /** * @return When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>. + * Possible values: immediately, daily, weekly, monthly. */ @JsonProperty("admin_notification_frequency") public Optional> getAdminNotificationFrequency() { @@ -161,7 +161,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>.

    + * Possible values: block, user_notification, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -176,7 +176,7 @@ public Builder shields(List shields) { /** *

    When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>.

    + * Possible values: immediately, daily, weekly, monthly.

    */ @JsonSetter(value = "admin_notification_frequency", nulls = Nulls.SKIP) public Builder adminNotificationFrequency( @@ -217,5 +217,15 @@ public UpdateBreachedPasswordDetectionSettingsResponseContent build() { return new UpdateBreachedPasswordDetectionSettingsResponseContent( enabled, shields, adminNotificationFrequency, method, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java index 52ead5ee..111c01fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>. + * Possible values: block, user_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -162,7 +162,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>.

    + * Possible values: block, user_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -218,5 +218,15 @@ public UpdateBruteForceSettingsResponseContent build() { return new UpdateBruteForceSettingsResponseContent( enabled, shields, allowlist, mode, maxAttempts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java index f0bd62b3..f743e669 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java @@ -321,5 +321,15 @@ public UpdateClientGrantRequestContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java index 41b38a2c..cc0feaf1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java @@ -379,5 +379,15 @@ public UpdateClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java index 92128e56..9357fcd9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -240,7 +240,7 @@ public Optional getName() { } /** - * @return Free text description of the purpose of the Client. (Max character length: <code>140</code>) + * @return Free text description of the purpose of the Client. (Max character length: 140) */ @JsonProperty("description") public Optional getDescription() { @@ -331,7 +331,7 @@ public Optional> getAllowedClients() { } /** - * @return URLs that are valid to redirect to after logout from Auth0. + * @return URLs that are valid to redirect to after logout from Auth0 */ @JsonProperty("allowed_logout_urls") public Optional> getAllowedLogoutUrls() { @@ -353,7 +353,7 @@ public OptionalNullable getEncryptionKey() { } /** - * @return <code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>) + * @return true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) */ @JsonProperty("sso") public Optional getSso() { @@ -361,7 +361,7 @@ public Optional getSso() { } /** - * @return <code>true</code> if this client can be used to make cross-origin authentication requests, <code>false</code> otherwise if cross origin is disabled + * @return true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled */ @JsonProperty("cross_origin_authentication") public Optional getCrossOriginAuthentication() { @@ -381,7 +381,7 @@ public OptionalNullable getCrossOriginLoc() { } /** - * @return <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>) + * @return true to disable Single Sign On, false otherwise (default: false) */ @JsonProperty("sso_disabled") public Optional getSsoDisabled() { @@ -389,7 +389,7 @@ public Optional getSsoDisabled() { } /** - * @return <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. + * @return true if the custom login page is to be used, false otherwise. */ @JsonProperty("custom_login_page_on") public Optional getCustomLoginPageOn() { @@ -1022,7 +1022,7 @@ public Builder name(String name) { } /** - *

    Free text description of the purpose of the Client. (Max character length: <code>140</code>)

    + *

    Free text description of the purpose of the Client. (Max character length: 140)

    */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { @@ -1202,7 +1202,7 @@ public Builder allowedClients(List allowedClients) { } /** - *

    URLs that are valid to redirect to after logout from Auth0.

    + *

    URLs that are valid to redirect to after logout from Auth0

    */ @JsonSetter(value = "allowed_logout_urls", nulls = Nulls.SKIP) public Builder allowedLogoutUrls(Optional> allowedLogoutUrls) { @@ -1258,7 +1258,7 @@ public Builder encryptionKey(com.auth0.client.mgmt.core.Nullable<code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false)

    */ @JsonSetter(value = "sso", nulls = Nulls.SKIP) public Builder sso(Optional sso) { @@ -1272,7 +1272,7 @@ public Builder sso(Boolean sso) { } /** - *

    <code>true</code> if this client can be used to make cross-origin authentication requests, <code>false</code> otherwise if cross origin is disabled

    + *

    true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled

    */ @JsonSetter(value = "cross_origin_authentication", nulls = Nulls.SKIP) public Builder crossOriginAuthentication(Optional crossOriginAuthentication) { @@ -1320,7 +1320,7 @@ public Builder crossOriginLoc(com.auth0.client.mgmt.core.Nullable crossO } /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    */ @JsonSetter(value = "sso_disabled", nulls = Nulls.SKIP) public Builder ssoDisabled(Optional ssoDisabled) { @@ -1334,7 +1334,7 @@ public Builder ssoDisabled(Boolean ssoDisabled) { } /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise.

    + *

    true if the custom login page is to be used, false otherwise.

    */ @JsonSetter(value = "custom_login_page_on", nulls = Nulls.SKIP) public Builder customLoginPageOn(Optional customLoginPageOn) { @@ -2022,5 +2022,15 @@ public UpdateClientRequestContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java index fc2fd813..ae9add22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public UpdateClientResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java index b5987367..9c82bf29 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -1196,5 +1196,15 @@ public UpdateConnectionOptions build() { federatedConnectionsAccessTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java index 3ff10a66..8fc46e12 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java @@ -228,5 +228,15 @@ public UpdateConnectionProfileRequestContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java index 0093ba01..b9ff360f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java @@ -254,5 +254,15 @@ public UpdateConnectionProfileResponseContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java index 39099034..96d0624d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java @@ -93,7 +93,7 @@ public Optional> getEnabledClients() { } /** - * @return <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.) + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) */ @JsonProperty("is_domain_connection") public Optional getIsDomainConnection() { @@ -101,7 +101,7 @@ public Optional getIsDomainConnection() { } /** - * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.) + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) */ @JsonProperty("show_as_button") public Optional getShowAsButton() { @@ -281,7 +281,7 @@ public Builder enabledClients(List enabledClients) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) public Builder isDomainConnection(Optional isDomainConnection) { @@ -295,7 +295,7 @@ public Builder isDomainConnection(Boolean isDomainConnection) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) public Builder showAsButton(Optional showAsButton) { @@ -368,5 +368,15 @@ public UpdateConnectionRequestContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java index 6a076a06..15a429bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java @@ -197,5 +197,15 @@ public UpdateConnectionRequestContentAd build() { return new UpdateConnectionRequestContentAd( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java index 40fb1353..71e1aff5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentAdfs build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java index ea4f723f..da797e08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentAmazon build() { return new UpdateConnectionRequestContentAmazon( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java index 14c9cf95..b605ec4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java @@ -197,5 +197,15 @@ public UpdateConnectionRequestContentAol build() { return new UpdateConnectionRequestContentAol( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java index 38a32b74..8143cbf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentApple build() { return new UpdateConnectionRequestContentApple( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java index 2b939b4d..a8113a69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java @@ -227,5 +227,15 @@ public UpdateConnectionRequestContentAuth0 build() { return new UpdateConnectionRequestContentAuth0( displayName, enabledClients, isDomainConnection, metadata, options, realms, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java index 2d0fb032..8212986a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentAuth0Oidc build() { return new UpdateConnectionRequestContentAuth0Oidc( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java index 8a1642c7..70f028c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentAzureAd build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java index 98dd9201..20b659a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentBaidu build() { return new UpdateConnectionRequestContentBaidu( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java index c2339b7b..c5421d34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentBitbucket build() { return new UpdateConnectionRequestContentBitbucket( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java index f1d8f9e5..751a9c05 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentBitly build() { return new UpdateConnectionRequestContentBitly( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java index fd58711d..ca8c0cfc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java @@ -260,5 +260,15 @@ public UpdateConnectionRequestContentBox build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java index 86ed5acd..cacc4468 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentCustom build() { return new UpdateConnectionRequestContentCustom( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java index c8ce9e31..c39382eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentDaccount build() { return new UpdateConnectionRequestContentDaccount( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java index f8be1845..2709747b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentDropbox build() { return new UpdateConnectionRequestContentDropbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java index 3639a117..768b3f0b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentDwolla build() { return new UpdateConnectionRequestContentDwolla( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java index a3c9757f..1b206184 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentEmail build() { return new UpdateConnectionRequestContentEmail( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java index c8387ec2..54b77f55 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentEvernote build() { return new UpdateConnectionRequestContentEvernote( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java index 15008e6f..68c81f11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentEvernoteSandbox build() { return new UpdateConnectionRequestContentEvernoteSandbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java index 41d9d6ec..0b15118a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentExact build() { return new UpdateConnectionRequestContentExact( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java index 341a645d..1d55c691 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentFacebook build() { return new UpdateConnectionRequestContentFacebook( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java index 41f14d24..b5afa435 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentFitbit build() { return new UpdateConnectionRequestContentFitbit( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java index 8ece90a0..feb47f36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentFlickr build() { return new UpdateConnectionRequestContentFlickr( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java index ab6f28c7..70009efc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentGitHub build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java index bc801b35..cfa6e554 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentGoogleApps build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java index d634e097..4ddc6afe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentGoogleOAuth2 build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java index 5145f479..73592c2a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentInstagram build() { return new UpdateConnectionRequestContentInstagram( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java index 93c5fe47..7da6fa28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java @@ -232,5 +232,15 @@ public UpdateConnectionRequestContentIp build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java index bdb9cc39..836d4de7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentLine build() { return new UpdateConnectionRequestContentLine( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java index 745f5823..df6fc803 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentLinkedin build() { return new UpdateConnectionRequestContentLinkedin( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java index cd2660f5..158397f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentMiicard build() { return new UpdateConnectionRequestContentMiicard( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java index a5a03181..fc0d39b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentOAuth1 build() { return new UpdateConnectionRequestContentOAuth1( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java index 526fc6ff..e39d2ff4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentOAuth2 build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java index af7cadc7..e325096a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentOffice365 build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java index 232aaefa..459b68a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java @@ -285,5 +285,15 @@ public UpdateConnectionRequestContentOidc build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java index bc6012f0..92c8bf22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentOkta build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java index 5215f730..5a41c2cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentPaypal build() { return new UpdateConnectionRequestContentPaypal( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java index 34336799..af4638a8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentPaypalSandbox build() { return new UpdateConnectionRequestContentPaypalSandbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java index 1202d4f5..1d5a9744 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentPingFederate build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java index d19e7bf6..c93624db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentPlanningCenter build() { return new UpdateConnectionRequestContentPlanningCenter( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java index 07563d8c..147b1f46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentRenren build() { return new UpdateConnectionRequestContentRenren( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java index a3818f7b..e3102b09 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSalesforce build() { return new UpdateConnectionRequestContentSalesforce( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java index 7aed752b..edd9aced 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSalesforceCommunity build() { return new UpdateConnectionRequestContentSalesforceCommunity( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java index e4e458e8..0380deac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSalesforceSandbox build() { return new UpdateConnectionRequestContentSalesforceSandbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java index 0ae5ba49..df2acf51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentSaml build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java index 759e85e2..f93d8155 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentSharepoint build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java index f67409cf..9c1e77bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentShop build() { return new UpdateConnectionRequestContentShop( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java index 7888d493..d2444596 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentShopify build() { return new UpdateConnectionRequestContentShopify( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java index 6d1b7015..1a05971c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java @@ -197,5 +197,15 @@ public UpdateConnectionRequestContentSms build() { return new UpdateConnectionRequestContentSms( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java index 31d41860..889e439f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSoundcloud build() { return new UpdateConnectionRequestContentSoundcloud( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java index 7b0a918e..82f7e898 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentThirtySevenSignals build() { return new UpdateConnectionRequestContentThirtySevenSignals( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java index 42694956..89c2ea0d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentTwitter build() { return new UpdateConnectionRequestContentTwitter( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java index 7eec6454..ff7cc11d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentUntappd build() { return new UpdateConnectionRequestContentUntappd( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java index 28bf9bd4..c990fca9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentVkontakte build() { return new UpdateConnectionRequestContentVkontakte( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java index cf0ed313..63bad503 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentWeibo build() { return new UpdateConnectionRequestContentWeibo( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java index ffe86967..8e4fde0b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentWindowsLive build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java index 22b4fb9f..442c0e59 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentWordpress build() { return new UpdateConnectionRequestContentWordpress( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java index 1a757c8c..abe44897 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentYahoo build() { return new UpdateConnectionRequestContentYahoo( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java index ad002539..498a645e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentYammer build() { return new UpdateConnectionRequestContentYammer( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java index 3be54d53..ff6fb636 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentYandex build() { return new UpdateConnectionRequestContentYandex( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java index e9c80cb2..f708907c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java @@ -432,5 +432,15 @@ public UpdateConnectionResponseContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java index 99a88868..d23d711e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java @@ -229,5 +229,15 @@ public UpdateCustomDomainRequestContent build() { return new UpdateCustomDomainRequestContent( tlsPolicy, customClientIpHeader, domainMetadata, relyingPartyIdentifier, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java index 9a6bdbac..62d8416e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java @@ -260,6 +260,10 @@ public interface VerificationStage { public interface _FinalStage { UpdateCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -566,5 +570,17 @@ public UpdateCustomDomainResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java index cf1426c7..702afacc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java @@ -131,5 +131,15 @@ public UpdateDirectoryProvisioningRequestContent build() { return new UpdateDirectoryProvisioningRequestContent( mapping, synchronizeAutomatically, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java index 199f418f..26991d9a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java @@ -247,6 +247,10 @@ public interface UpdatedAtStage { public interface _FinalStage { UpdateDirectoryProvisioningResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -509,5 +513,17 @@ public UpdateDirectoryProvisioningResponseContent build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java index 12a2255f..dff761e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java @@ -209,5 +209,15 @@ public UpdateEmailProviderResponseContent build() { return new UpdateEmailProviderResponseContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java index 24add727..d782470b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java @@ -565,5 +565,15 @@ public UpdateEmailTemplateRequestContent build() { enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java index c7a2f72b..e359701e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java @@ -566,5 +566,15 @@ public UpdateEmailTemplateResponseContent build() { enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java index bb902c3c..85ea275e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java @@ -96,6 +96,10 @@ public interface StatusStage { public interface _FinalStage { UpdateEnabledClientConnectionsRequestContentItem build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage status(boolean status) { public UpdateEnabledClientConnectionsRequestContentItem build() { return new UpdateEnabledClientConnectionsRequestContentItem(clientId, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java index 6f2a670c..dfb4886c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java @@ -178,5 +178,15 @@ public Builder status(EventStreamStatusEnum status) { public UpdateEventStreamRequestContent build() { return new UpdateEventStreamRequestContent(name, subscriptions, destination, status, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java index d71828b4..7ad10966 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java @@ -115,5 +115,15 @@ public Builder actions(List actions) { public UpdateFlowRequestContent build() { return new UpdateFlowRequestContent(name, actions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java index dd6e1cb2..b7ed4be0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java @@ -139,6 +139,10 @@ public interface UpdatedAtStage { public interface _FinalStage { UpdateFlowResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -237,5 +241,17 @@ public UpdateFlowResponseContent build() { return new UpdateFlowResponseContent( id, name, actions, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java index 3f7d1e2f..ebda4b62 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java @@ -246,6 +246,10 @@ public interface FingerprintStage { public interface _FinalStage { UpdateFlowsVaultConnectionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection environment.

    */ @@ -472,5 +476,17 @@ public UpdateFlowsVaultConnectionResponseContent build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java index 777677ea..5c3d4d1c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java @@ -421,5 +421,15 @@ public UpdateFormRequestContent build() { return new UpdateFormRequestContent( name, messages, languages, translations, nodes, start, ending, style, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java index 3be8732a..d5e61a7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java @@ -222,6 +222,10 @@ public interface UpdatedAtStage { public interface _FinalStage { UpdateFormResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -473,5 +477,17 @@ public UpdateFormResponseContent build() { submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java index 634e09d9..502c8963 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public UpdateGuardianFactorDuoSettingsResponseContent build() { return new UpdateGuardianFactorDuoSettingsResponseContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java index 0776e541..13a34ea2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java @@ -149,5 +149,15 @@ public UpdateGuardianFactorsProviderPushNotificationApnsResponseContent build() return new UpdateGuardianFactorsProviderPushNotificationApnsResponseContent( sandbox, bundleId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java index 72a5d6a4..8ec6c39a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java @@ -356,5 +356,15 @@ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java index a670143d..81e2c399 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java @@ -183,5 +183,15 @@ public Builder dependencies(Map dependencies) { public UpdateHookRequestContent build() { return new UpdateHookRequestContent(name, script, enabled, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java index a76296cf..c03286f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java @@ -244,5 +244,15 @@ public UpdateHookResponseContent build() { return new UpdateHookResponseContent( triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java index f6ea3cb1..b2270f83 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java @@ -233,5 +233,15 @@ public UpdateLogStreamRequestContent build() { return new UpdateLogStreamRequestContent( name, status, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java index bb297f74..b4a442d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java @@ -177,5 +177,15 @@ public Builder rule(NetworkAclRule rule) { public UpdateNetworkAclRequestContent build() { return new UpdateNetworkAclRequestContent(description, active, priority, rule, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java index 9b15c8f0..b729b0d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java @@ -251,5 +251,15 @@ public UpdateNetworkAclResponseContent build() { return new UpdateNetworkAclResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java index e4707f1d..5db8a970 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java @@ -225,5 +225,15 @@ public UpdateOrganizationConnectionResponseContent build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java index b1d5c728..f687785f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { UpdateOrganizationDiscoveryDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public UpdateOrganizationDiscoveryDomainResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java index fa3df9ea..64d4b0d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java @@ -235,5 +235,15 @@ public UpdateOrganizationRequestContent build() { return new UpdateOrganizationRequestContent( displayName, name, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java index 5603c895..79f93b23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java @@ -233,5 +233,15 @@ public UpdateOrganizationResponseContent build() { return new UpdateOrganizationResponseContent( id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java index 9ed20af9..36047916 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java @@ -155,6 +155,10 @@ public interface DisabledStage { public interface _FinalStage { UpdatePhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -278,5 +282,17 @@ public UpdatePhoneTemplateResponseContent build() { return new UpdatePhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java index 040321c4..2f84a2f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java @@ -126,5 +126,15 @@ public Builder refreshTokenMetadata( public UpdateRefreshTokenRequestContent build() { return new UpdateRefreshTokenRequestContent(refreshTokenMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java index b89eba52..42b072e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java @@ -477,5 +477,15 @@ public UpdateRefreshTokenResponseContent build() { lastExchangedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java index 894f391b..03420785 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java @@ -578,5 +578,15 @@ public UpdateResourceServerRequestContent build() { subjectTypeAuthorization, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java index fe4e36b5..7759c0e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java @@ -738,5 +738,15 @@ public UpdateResourceServerResponseContent build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java index 7f9d9b68..475b3669 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -77,6 +77,10 @@ public interface RememberForStage { public interface _FinalStage { UpdateRiskAssessmentsSettingsNewDeviceResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage rememberFor(int rememberFor) { public UpdateRiskAssessmentsSettingsNewDeviceResponseContent build() { return new UpdateRiskAssessmentsSettingsNewDeviceResponseContent(rememberFor, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java index 74d0413f..1f20b862 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java @@ -76,6 +76,10 @@ public interface EnabledStage { public interface _FinalStage { UpdateRiskAssessmentsSettingsResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage enabled(boolean enabled) { public UpdateRiskAssessmentsSettingsResponseContent build() { return new UpdateRiskAssessmentsSettingsResponseContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java index b2295388..b7b610a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java @@ -126,5 +126,15 @@ public Builder description(String description) { public UpdateRoleRequestContent build() { return new UpdateRoleRequestContent(name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java index 030113ea..e2588ade 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java @@ -157,5 +157,15 @@ public Builder description(String description) { public UpdateRoleResponseContent build() { return new UpdateRoleResponseContent(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java index a2ea28da..f05681ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java @@ -189,5 +189,15 @@ public Builder enabled(Boolean enabled) { public UpdateRuleRequestContent build() { return new UpdateRuleRequestContent(script, name, order, enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java index 3705f023..1df00d23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public UpdateRuleResponseContent build() { return new UpdateRuleResponseContent(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java index 14fcbb30..f73c0e13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java @@ -328,5 +328,15 @@ public UpdateScimConfigurationResponseContent build() { updatedOn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java index 755f4e00..884973cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java @@ -79,7 +79,7 @@ public OptionalNullable getBranding() { } /** - * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate] + * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate] */ @JsonProperty("allowed_strategies") public Optional> getAllowedStrategies() { @@ -272,7 +272,7 @@ public Builder branding(com.auth0.client.mgmt.core.NullableList of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) public Builder allowedStrategies(Optional> allowedStrategies) { @@ -362,5 +362,15 @@ public UpdateSelfServiceProfileRequestContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java index 6253c468..3ed9c6d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java @@ -119,7 +119,7 @@ public Optional getBranding() { } /** - * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate] + * @return List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate] */ @JsonProperty("allowed_strategies") public Optional> getAllowedStrategies() { @@ -315,7 +315,7 @@ public Builder branding(SelfServiceProfileBrandingProperties branding) { } /** - *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp, pingfederate]

    + *

    List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [oidc, samlp, waad, google-apps, adfs, okta, auth0-samlp, okta-samlp, keycloak-samlp, pingfederate]

    */ @JsonSetter(value = "allowed_strategies", nulls = Nulls.SKIP) public Builder allowedStrategies(Optional> allowedStrategies) { @@ -355,5 +355,15 @@ public UpdateSelfServiceProfileResponseContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java index 43009ff8..383d4746 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java @@ -125,5 +125,15 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java index 74e14d61..2ac2fa6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java @@ -460,5 +460,15 @@ public UpdateSessionResponseContent build() { sessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java index 9dc1449b..673d819b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java @@ -218,5 +218,15 @@ public UpdateSettingsRequestContent build() { return new UpdateSettingsRequestContent( universalLoginExperience, identifierFirst, webauthnPlatformFirstFactor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java index 8acc2ed8..39209a18 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java @@ -154,5 +154,15 @@ public UpdateSettingsResponseContent build() { return new UpdateSettingsResponseContent( universalLoginExperience, identifierFirst, webauthnPlatformFirstFactor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java index a7502a8f..ec7bff38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java @@ -76,6 +76,10 @@ public interface AkamaiEnabledStage { public interface _FinalStage { UpdateSupplementalSignalsRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage akamaiEnabled(boolean akamaiEnabled) { public UpdateSupplementalSignalsRequestContent build() { return new UpdateSupplementalSignalsRequestContent(akamaiEnabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java index 115a9ef0..7c46101f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java @@ -54,7 +54,7 @@ public Optional getEnabled() { /** * @return Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -143,7 +143,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -182,5 +182,15 @@ public UpdateSuspiciousIpThrottlingSettingsResponseContent build() { return new UpdateSuspiciousIpThrottlingSettingsResponseContent( enabled, shields, allowlist, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java index 834480b1..22d9b9f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java @@ -1451,5 +1451,15 @@ public UpdateTenantSettingsResponseContent build() { enableAiGuide, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java index d4253ec2..f14c9698 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java @@ -127,5 +127,15 @@ public Builder subjectTokenType(String subjectTokenType) { public UpdateTokenExchangeProfileRequestContent build() { return new UpdateTokenExchangeProfileRequestContent(name, subjectTokenType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java index 809a005a..dc5998d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java @@ -70,6 +70,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { UpdateTokenQuota build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public UpdateTokenQuota build() { return new UpdateTokenQuota(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java index 933f432d..db1b0512 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java @@ -72,6 +72,10 @@ public interface TemplateStage { public interface _FinalStage { UpdateUniversalLoginTemplateRequestContentTemplate build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -100,5 +104,17 @@ public _FinalStage template(@NotNull String template) { public UpdateUniversalLoginTemplateRequestContentTemplate build() { return new UpdateUniversalLoginTemplateRequestContentTemplate(template, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java index 8e07b36c..c25a75ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java @@ -167,5 +167,15 @@ public Builder userAttributes( public UpdateUserAttributeProfileRequestContent build() { return new UpdateUserAttributeProfileRequestContent(name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java index 5ec1be96..e2a4415e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java @@ -170,5 +170,15 @@ public UpdateUserAttributeProfileResponseContent build() { return new UpdateUserAttributeProfileResponseContent( id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java index ef05c795..c60ce809 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java @@ -241,6 +241,10 @@ public interface TypeStage { public interface _FinalStage { UpdateUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The ID of the newly created authentication method (automatically generated by the application)

    */ @@ -626,5 +630,17 @@ public UpdateUserAuthenticationMethodResponseContent build() { createdAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java index c6a62780..622be7c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java @@ -907,5 +907,15 @@ public UpdateUserRequestContent build() { username, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java index 8e5b12bc..daf65370 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public UpdateUserResponseContent build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java index 30b66c09..094ff9fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java @@ -418,5 +418,15 @@ public UpdateVerifiableCredentialTemplateResponseContent build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java index 5706a1c6..342f0a3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java @@ -168,5 +168,15 @@ public Builder userAttributes( public UserAttributeProfile build() { return new UserAttributeProfile(id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java index 2b538a11..27aae165 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java @@ -91,6 +91,10 @@ public interface MappingStage { public interface _FinalStage { UserAttributeProfileOidcMapping build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Display name for the OIDC mapping

    */ @@ -153,5 +157,17 @@ public _FinalStage displayName(Optional displayName) { public UserAttributeProfileOidcMapping build() { return new UserAttributeProfileOidcMapping(mapping, displayName, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java index d78a5764..ca8566c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java @@ -264,5 +264,15 @@ public UserAttributeProfileStrategyOverrides build() { return new UserAttributeProfileStrategyOverrides( pingfederate, ad, adfs, waad, googleApps, okta, oidc, samlp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java index 02e6b06b..ad325f74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java @@ -150,5 +150,15 @@ public UserAttributeProfileStrategyOverridesMapping build() { return new UserAttributeProfileStrategyOverridesMapping( oidcMapping, samlMapping, scimMapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java index fca59bd4..960c6a01 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java @@ -264,5 +264,15 @@ public UserAttributeProfileStrategyOverridesUserId build() { return new UserAttributeProfileStrategyOverridesUserId( pingfederate, ad, adfs, waad, googleApps, okta, oidc, samlp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java index df2c13f3..2c6e698c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java @@ -150,5 +150,15 @@ public UserAttributeProfileStrategyOverridesUserIdMapping build() { return new UserAttributeProfileStrategyOverridesUserIdMapping( oidcMapping, samlMapping, scimMapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java index ae6ceb19..50851a94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java @@ -142,5 +142,15 @@ public Builder userAttributes( public UserAttributeProfileTemplate build() { return new UserAttributeProfileTemplate(name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java index bd6554dc..c4e3fb4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java @@ -151,5 +151,15 @@ public Builder template(UserAttributeProfileTemplate template) { public UserAttributeProfileTemplateItem build() { return new UserAttributeProfileTemplateItem(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java index 4f602575..41ac2914 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java @@ -194,6 +194,10 @@ public interface Auth0MappingStage { public interface _FinalStage { UserAttributeProfileUserAttributeAdditionalProperties build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage oidcMapping(Optional oidcMapping); _FinalStage oidcMapping(UserAttributeProfileOidcMapping oidcMapping); @@ -371,5 +375,17 @@ public UserAttributeProfileUserAttributeAdditionalProperties build() { strategyOverrides, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java index 68b3ce4e..601e1e22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java @@ -173,5 +173,15 @@ public UserAttributeProfileUserId build() { return new UserAttributeProfileUserId( oidcMapping, samlMapping, scimMapping, strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java index 0029e96d..59c6f3d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java @@ -352,6 +352,10 @@ public interface CreatedAtStage { public interface _FinalStage { UserAuthenticationMethod build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The authentication method status

    */ @@ -924,5 +928,17 @@ public UserAuthenticationMethod build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java index 9893bebd..9b1e4c7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java @@ -117,5 +117,15 @@ public Builder id(String id) { public UserAuthenticationMethodProperties build() { return new UserAuthenticationMethodProperties(type, id, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java index 1149c8dd..2ba8d0a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java @@ -157,5 +157,15 @@ public Builder connection(String connection) { public UserBlockIdentifier build() { return new UserBlockIdentifier(identifier, ip, connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java index 4da8da77..28306e2e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java @@ -220,5 +220,15 @@ public Builder scope(List scope) { public UserGrant build() { return new UserGrant(id, clientId, userId, audience, scope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java index e9056c21..4adb8d5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java @@ -457,5 +457,15 @@ public UserGroupsResponseSchema build() { membershipCreatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java index f67dd2aa..ae6fc154 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java @@ -185,6 +185,10 @@ public interface ProviderStage { public interface _FinalStage { UserIdentity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage profileData(Optional profileData); _FinalStage profileData(UserProfileData profileData); @@ -391,5 +395,17 @@ public UserIdentity build() { refreshToken, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java index 794f1954..e2064a5b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java @@ -314,5 +314,15 @@ public UserIdentitySchema build() { profileData, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java index 6cc6f997..25ea1a8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java @@ -192,5 +192,15 @@ public UserListLogOffsetPaginatedResponseContent build() { return new UserListLogOffsetPaginatedResponseContent( start, limit, length, total, logs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java index 0bd26cc7..13d283f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java @@ -191,5 +191,15 @@ public UserPermissionSchema build() { return new UserPermissionSchema( resourceServerIdentifier, permissionName, resourceServerName, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java b/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java index e76d8a54..a5d3ebd6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java @@ -326,5 +326,15 @@ public UserProfileData build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java index e177e50d..781c690e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public UserResponseSchema build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java index fd678fdb..8086e803 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java @@ -114,5 +114,15 @@ public Builder phoneNumber(Boolean phoneNumber) { public UsernameAllowedTypes build() { return new UsernameAllowedTypes(email, phoneNumber, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java index 81d7ee07..63bb140c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java @@ -171,5 +171,15 @@ public Builder validation(UsernameValidation validation) { public UsernameAttribute build() { return new UsernameAttribute(identifier, profileRequired, signup, validation, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java b/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java index d8070e03..bcfa1733 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java @@ -153,5 +153,15 @@ public Builder allowedTypes(UsernameAllowedTypes allowedTypes) { public UsernameValidation build() { return new UsernameValidation(minLength, maxLength, allowedTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java b/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java index 17c5706f..7f8c1983 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java @@ -347,5 +347,15 @@ public UsersEnrollment build() { lastAuth, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java b/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java index 1a17eb38..9558599e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java @@ -418,5 +418,15 @@ public VerifiableCredentialTemplateResponse build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java index fc200d0d..5c024437 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java @@ -256,6 +256,10 @@ public interface TypeStage { public interface _FinalStage { VerifyCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    CNAME API key header.

    */ @@ -566,5 +570,17 @@ public VerifyCustomDomainResponseContent build() { certificate, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java index 940d7b9a..fda1c69e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java @@ -73,7 +73,7 @@ public String getUserId() { } /** - * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger. + * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. */ @JsonProperty("client_id") public Optional getClientId() { @@ -163,6 +163,10 @@ public interface UserIdStage { public interface _FinalStage { VerifyEmailTicketRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id.

    */ @@ -171,7 +175,7 @@ public interface _FinalStage { _FinalStage resultUrl(String resultUrl); /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    */ _FinalStage clientId(Optional clientId); @@ -322,7 +326,7 @@ public _FinalStage organizationId(Optional organizationId) { } /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -332,7 +336,7 @@ public _FinalStage clientId(String clientId) { } /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    */ @java.lang.Override @JsonSetter(value = "client_id", nulls = Nulls.SKIP) @@ -373,5 +377,17 @@ public VerifyEmailTicketRequestContent build() { identity, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java index d558bbb5..2de3747c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java @@ -76,6 +76,10 @@ public interface TicketStage { public interface _FinalStage { VerifyEmailTicketResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage ticket(@NotNull String ticket) { public VerifyEmailTicketResponseContent build() { return new VerifyEmailTicketResponseContent(ticket, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java index e90447fb..88630790 100644 --- a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java @@ -106,6 +106,10 @@ public interface PemStage { public interface _FinalStage { X509CertificateCredential build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -178,5 +182,17 @@ public _FinalStage name(Optional name) { public X509CertificateCredential build() { return new X509CertificateCredential(credentialType, name, pem, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java index c9f13336..3206cae1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java @@ -42,6 +42,14 @@ public CompletableFuture> list(Stri return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve detailed list of authentication methods associated with a specified user. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -75,8 +83,8 @@ public CompletableFuture create( } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture> set( @@ -85,8 +93,8 @@ public CompletableFuture> set( } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture> set( @@ -118,21 +126,21 @@ public CompletableFuture get( } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture delete(String id, String authenticationMethodId) { return this.rawClient.delete(id, authenticationMethodId).thenApply(response -> response.body()); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture delete(String id, String authenticationMethodId, RequestOptions requestOptions) { return this.rawClient.delete(id, authenticationMethodId, requestOptions).thenApply(response -> response.body()); } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture update( String id, String authenticationMethodId) { @@ -140,7 +148,15 @@ public CompletableFuture update( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. + */ + public CompletableFuture update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return this.rawClient.update(id, authenticationMethodId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -148,7 +164,7 @@ public CompletableFuture update( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java index 3c59a93d..59538cad 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java @@ -25,14 +25,14 @@ public AsyncRawAuthenticatorsClient withRawResponse() { } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture deleteAll(String id) { return this.rawClient.deleteAll(id).thenApply(response -> response.body()); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture deleteAll(String id, RequestOptions requestOptions) { return this.rawClient.deleteAll(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java index 74e2b128..f9551c13 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java @@ -34,6 +34,13 @@ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve all connected accounts associated with the user. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all connected accounts associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java index 83f2ec12..b57af860 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java @@ -27,14 +27,14 @@ public AsyncRawEnrollmentsClient withRawResponse() { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture> get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java index adc8d868..df132f6b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java @@ -34,6 +34,14 @@ public CompletableFuture> get(Strin return this.rawClient.get(id).thenApply(response -> response.body()); } + /** + * List all groups to which this user belongs. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + /** * List all groups to which this user belongs. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java index 72f68697..5328e3f2 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java @@ -32,19 +32,19 @@ public AsyncRawIdentitiesClient withRawResponse() { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -52,10 +52,10 @@ public AsyncRawIdentitiesClient withRawResponse() {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture> link(String id) { return this.rawClient.link(id).thenApply(response -> response.body()); @@ -64,19 +64,19 @@ public CompletableFuture> link(String id) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -84,10 +84,42 @@ public CompletableFuture> link(String id) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public CompletableFuture> link(String id, RequestOptions requestOptions) { + return this.rawClient.link(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture> link(String id, LinkUserIdentityRequestContent request) { return this.rawClient.link(id, request).thenApply(response -> response.body()); @@ -96,19 +128,19 @@ public CompletableFuture> link(String id, LinkUserIdentityReq /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -116,10 +148,10 @@ public CompletableFuture> link(String id, LinkUserIdentityReq
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture> link( String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { @@ -128,7 +160,7 @@ public CompletableFuture> link( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture> delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -137,7 +169,7 @@ public CompletableFuture> delete( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture> delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java index 42f5d46c..fec4f1b8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java @@ -29,9 +29,9 @@ public AsyncRawLogsClient withRawResponse() { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -39,9 +39,19 @@ public CompletableFuture> list(String id) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture> list(String id, ListUserLogsRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); @@ -49,9 +59,9 @@ public CompletableFuture> list(String id, ListUserLogsRe /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture> list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java index 1cda1888..686a5ec2 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java @@ -26,28 +26,28 @@ public AsyncRawMultifactorClient withRawResponse() { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture invalidateRememberBrowser(String id) { return this.rawClient.invalidateRememberBrowser(id).thenApply(response -> response.body()); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture invalidateRememberBrowser(String id, RequestOptions requestOptions) { return this.rawClient.invalidateRememberBrowser(id, requestOptions).thenApply(response -> response.body()); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture deleteProvider(String id, UserMultifactorProviderEnum provider) { return this.rawClient.deleteProvider(id, provider).thenApply(response -> response.body()); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture deleteProvider( String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java index b60520d3..5314c570 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java @@ -28,14 +28,21 @@ public AsyncRawOrganizationsClient withRawResponse() { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture> list( String id, ListUserOrganizationsRequestParameters request) { @@ -43,7 +50,7 @@ public CompletableFuture> list( } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java index 90fc2792..3a22eca4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java @@ -36,6 +36,13 @@ public CompletableFuture> list(String i return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve all permissions associated with the user. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all permissions associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java index 1c5e6084..1b429fb2 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java @@ -60,6 +60,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserAuthenticationMethodsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -83,6 +91,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -189,12 +202,16 @@ public CompletableFuture> create( String id, CreateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -203,7 +220,7 @@ public CompletableFuture<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture>> set( @@ -291,18 +308,22 @@ public CompletableFuture<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture>> set( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -311,7 +332,7 @@ public CompletableFuture> deleteAll(String id) { * Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. */ public CompletableFuture> deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -471,15 +496,19 @@ public CompletableFuture> get( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -551,26 +580,30 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> delete(String id, String authenticationMethodId) { return delete(id, authenticationMethodId, null); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> delete( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -638,7 +671,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> update( String id, String authenticationMethodId) { @@ -649,7 +682,19 @@ public CompletableFutureManage Authentication Methods with Management API. + */ + public CompletableFuture> update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return update( + id, + authenticationMethodId, + UpdateUserAuthenticationMethodRequestContent.builder().build(), + requestOptions); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -657,20 +702,24 @@ public CompletableFutureManage Authentication Methods with Management API. */ public CompletableFuture> update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -679,7 +728,7 @@ public CompletableFutureManage Authentication Methods with Management API. */ public CompletableFuture> deleteAll(String id) { return deleteAll(id, null); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authenticators") - .build(); + .addPathSegments("authenticators"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java index 890a9b7d..6712777d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java @@ -48,6 +48,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, GetUserConnectedAccountsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all connected accounts associated with the user. */ @@ -71,6 +79,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java index ead3727b..bd99fd7d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java @@ -38,25 +38,29 @@ public AsyncRawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture>> get(String id) { return get(id, null); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("enrollments") - .build(); + .addPathSegments("enrollments"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java index ddd52d8b..6f4456f4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java @@ -49,14 +49,18 @@ public CompletableFuture>> list( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .build(); + .addPathSegments("federated-connections-tokensets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -128,15 +132,19 @@ public CompletableFuture> delete(String id, Stri public CompletableFuture> delete( String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId) - .build(); + .addPathSegment(tokensetId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java index 13f08fae..39f1af13 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java @@ -48,6 +48,14 @@ public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, GetUserGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups to which this user belongs. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java index b6b3abd3..e8e4622e 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java @@ -45,19 +45,19 @@ public AsyncRawIdentitiesClient(ClientOptions clientOptions) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -65,10 +65,10 @@ public AsyncRawIdentitiesClient(ClientOptions clientOptions) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture>> link(String id) { return link(id, LinkUserIdentityRequestContent.builder().build()); @@ -77,19 +77,19 @@ public CompletableFuture>> link(Str /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -97,10 +97,43 @@ public CompletableFuture>> link(Str
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public CompletableFuture>> link( + String id, RequestOptions requestOptions) { + return link(id, LinkUserIdentityRequestContent.builder().build(), requestOptions); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture>> link( String id, LinkUserIdentityRequestContent request) { @@ -110,19 +143,19 @@ public CompletableFuture>> link( /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -130,19 +163,23 @@ public CompletableFuture>> link(
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture>> link( String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("identities") - .build(); + .addPathSegments("identities"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -151,7 +188,7 @@ public CompletableFuture>> link( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -224,7 +261,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture>> delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -233,20 +270,24 @@ public CompletableFutureUnlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture>> delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("identities") .addPathSegment(provider.toString()) - .addPathSegment(userId) - .build(); + .addPathSegment(userId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java index ed65b39a..6bf435ec 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java @@ -43,9 +43,9 @@ public AsyncRawLogsClient(ClientOptions clientOptions) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture>> list(String id) { return list(id, ListUserLogsRequestParameters.builder().build()); @@ -53,9 +53,20 @@ public CompletableFuture>> lis /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture>> list( String id, ListUserLogsRequestParameters request) { @@ -64,9 +75,9 @@ public CompletableFuture>> lis /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture>> list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { @@ -84,6 +95,11 @@ public CompletableFuture>> lis } QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java index 4348caac..5b3f0340 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java @@ -37,26 +37,30 @@ public AsyncRawMultifactorClient(ClientOptions clientOptions) { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture> invalidateRememberBrowser(String id) { return invalidateRememberBrowser(id, null); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture> invalidateRememberBrowser( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor/actions") - .addPathSegments("invalidate-remember-browser") - .build(); + .addPathSegments("invalidate-remember-browser"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -114,7 +118,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture> deleteProvider( String id, UserMultifactorProviderEnum provider) { @@ -122,19 +126,23 @@ public CompletableFuture> deleteProvider( } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture> deleteProvider( String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor") - .addPathSegment(provider.toString()) - .build(); + .addPathSegment(provider.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java index 580e43a7..95940f6c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java @@ -41,14 +41,22 @@ public AsyncRawOrganizationsClient(ClientOptions clientOptions) { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture>> list(String id) { return list(id, ListUserOrganizationsRequestParameters.builder().build()); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture>> list( String id, ListUserOrganizationsRequestParameters request) { @@ -56,7 +64,7 @@ public CompletableFutureAuth0 Organizations. */ public CompletableFuture>> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -70,6 +78,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java index bbe82196..2dfb7621 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java @@ -53,6 +53,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserPermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all permissions associated with the user. */ @@ -76,6 +84,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -181,12 +194,16 @@ public CompletableFuture> create( */ public CompletableFuture> create( String id, CreateUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -271,12 +288,16 @@ public CompletableFuture> delete( */ public CompletableFuture> delete( String id, DeleteUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -285,7 +306,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java index 589789eb..4e3afc4a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java @@ -51,6 +51,14 @@ public CompletableFuture>> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListRefreshTokensRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's refresh tokens. */ @@ -74,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,14 +182,18 @@ public CompletableFuture> delete(String userId) * Delete all refresh tokens for a user. */ public CompletableFuture> delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("refresh-tokens") - .build(); + .addPathSegments("refresh-tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java index 031a4da2..93f01b84 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java @@ -48,13 +48,17 @@ public CompletableFuture> clear(String id, Clear */ public CompletableFuture> clear( String id, ClearAssessorsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("risk-assessments") - .addPathSegments("clear") - .build(); + .addPathSegments("clear"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -63,7 +67,7 @@ public CompletableFuture> clear( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java index b4e3c2e0..1fb7bf0f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java @@ -47,7 +47,7 @@ public AsyncRawRolesClient(ClientOptions clientOptions) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture>> list(String id) { return list(id, ListUserRolesRequestParameters.builder().build()); @@ -55,7 +55,16 @@ public CompletableFuture>> li /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture>> list( String id, ListUserRolesRequestParameters request) { @@ -64,7 +73,7 @@ public CompletableFuture>> li /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture>> list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -78,6 +87,11 @@ public CompletableFuture>> li QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -158,25 +172,29 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture> assign(String id, AssignUserRolesRequestContent request) { return assign(id, request, null); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture> assign( String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -185,7 +203,7 @@ public CompletableFuture> assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -250,7 +268,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture> delete(String id, DeleteUserRolesRequestContent request) { return delete(id, request, null); @@ -258,16 +276,20 @@ public CompletableFuture> delete(String id, Dele /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture> delete( String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -276,7 +298,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java index b594a1c4..b2773d9a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java @@ -51,6 +51,14 @@ public CompletableFuture>> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListUserSessionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's sessions. */ @@ -74,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,14 +182,18 @@ public CompletableFuture> delete(String userId) * Delete all sessions for a user. */ public CompletableFuture> delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("sessions") - .build(); + .addPathSegments("sessions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java index e6de3b15..a74df1bc 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java @@ -34,6 +34,14 @@ public CompletableFuture> list(S return this.rawClient.list(userId).thenApply(response -> response.body()); } + /** + * Retrieve details for a user's refresh tokens. + */ + public CompletableFuture> list( + String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details for a user's refresh tokens. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java index c88b631d..5366e593 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java @@ -31,7 +31,7 @@ public AsyncRawRolesClient withRawResponse() { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -39,7 +39,15 @@ public CompletableFuture> list(String id) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture> list(String id, ListUserRolesRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); @@ -47,7 +55,7 @@ public CompletableFuture> list(String id, ListUserRoles /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture> list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -55,16 +63,16 @@ public CompletableFuture> list( } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture assign(String id, AssignUserRolesRequestContent request) { return this.rawClient.assign(id, request).thenApply(response -> response.body()); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture assign( String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { @@ -73,7 +81,7 @@ public CompletableFuture assign( /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture delete(String id, DeleteUserRolesRequestContent request) { return this.rawClient.delete(id, request).thenApply(response -> response.body()); @@ -81,7 +89,7 @@ public CompletableFuture delete(String id, DeleteUserRolesRequestContent r /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture delete( String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java index 4d6f38ae..975a026a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java @@ -34,6 +34,14 @@ public CompletableFuture> list(String return this.rawClient.list(userId).thenApply(response -> response.body()); } + /** + * Retrieve details for a user's sessions. + */ + public CompletableFuture> list( + String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details for a user's sessions. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java index 551aae32..7dab2682 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java @@ -41,6 +41,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve detailed list of authentication methods associated with a specified user. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -74,8 +81,8 @@ public CreateUserAuthenticationMethodResponseContent create( } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public List set(String id, List request) { @@ -83,8 +90,8 @@ public List set(String id, List<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public List set( @@ -116,28 +123,36 @@ public GetUserAuthenticationMethodResponseContent get( } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public void delete(String id, String authenticationMethodId) { this.rawClient.delete(id, authenticationMethodId).body(); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public void delete(String id, String authenticationMethodId, RequestOptions requestOptions) { this.rawClient.delete(id, authenticationMethodId, requestOptions).body(); } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public UpdateUserAuthenticationMethodResponseContent update(String id, String authenticationMethodId) { return this.rawClient.update(id, authenticationMethodId).body(); } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. + */ + public UpdateUserAuthenticationMethodResponseContent update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return this.rawClient.update(id, authenticationMethodId, requestOptions).body(); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public UpdateUserAuthenticationMethodResponseContent update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -145,7 +160,7 @@ public UpdateUserAuthenticationMethodResponseContent update( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public UpdateUserAuthenticationMethodResponseContent update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java index 5a1096e3..19a0de4b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java @@ -24,14 +24,14 @@ public RawAuthenticatorsClient withRawResponse() { } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public void deleteAll(String id) { this.rawClient.deleteAll(id).body(); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public void deleteAll(String id, RequestOptions requestOptions) { this.rawClient.deleteAll(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java index 71463074..f3bbadfe 100644 --- a/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve all connected accounts associated with the user. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve all connected accounts associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java index e8c4b5b4..f7ddd192 100644 --- a/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java @@ -26,14 +26,14 @@ public RawEnrollmentsClient withRawResponse() { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public List get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public List get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java index be7651cd..1b13d5ba 100644 --- a/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } + /** + * List all groups to which this user belongs. + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + /** * List all groups to which this user belongs. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java index 0ba639a0..bf0db9bf 100644 --- a/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java @@ -31,19 +31,19 @@ public RawIdentitiesClient withRawResponse() { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -51,10 +51,10 @@ public RawIdentitiesClient withRawResponse() {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public List link(String id) { return this.rawClient.link(id).body(); @@ -63,19 +63,19 @@ public List link(String id) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -83,10 +83,42 @@ public List link(String id) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public List link(String id, RequestOptions requestOptions) { + return this.rawClient.link(id, requestOptions).body(); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public List link(String id, LinkUserIdentityRequestContent request) { return this.rawClient.link(id, request).body(); @@ -95,19 +127,19 @@ public List link(String id, LinkUserIdentityRequestContent request /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -115,10 +147,10 @@ public List link(String id, LinkUserIdentityRequestContent request
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public List link(String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { return this.rawClient.link(id, request, requestOptions).body(); @@ -126,7 +158,7 @@ public List link(String id, LinkUserIdentityRequestContent request /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public List delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -135,7 +167,7 @@ public List delete( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public List delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/LogsClient.java b/src/main/java/com/auth0/client/mgmt/users/LogsClient.java index 32474027..6a759da9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/LogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/LogsClient.java @@ -28,9 +28,9 @@ public RawLogsClient withRawResponse() { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -38,9 +38,19 @@ public SyncPagingIterable list(String id) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public SyncPagingIterable list(String id, ListUserLogsRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -48,9 +58,9 @@ public SyncPagingIterable list(String id, ListUserLogsRequestParameters req /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public SyncPagingIterable list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java index cbbd4e7c..2dbf2d39 100644 --- a/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java @@ -25,28 +25,28 @@ public RawMultifactorClient withRawResponse() { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public void invalidateRememberBrowser(String id) { this.rawClient.invalidateRememberBrowser(id).body(); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public void invalidateRememberBrowser(String id, RequestOptions requestOptions) { this.rawClient.invalidateRememberBrowser(id, requestOptions).body(); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public void deleteProvider(String id, UserMultifactorProviderEnum provider) { this.rawClient.deleteProvider(id, provider).body(); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public void deleteProvider(String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { this.rawClient.deleteProvider(id, provider, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java index e428d0e5..f25eeeed 100644 --- a/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java @@ -27,21 +27,28 @@ public RawOrganizationsClient withRawResponse() { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public SyncPagingIterable list(String id, ListUserOrganizationsRequestParameters request) { return this.rawClient.list(id, request).body(); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public SyncPagingIterable list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java index 38744550..97f9cd7f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java @@ -35,6 +35,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve all permissions associated with the user. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve all permissions associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java index e61c090f..e18e745b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java @@ -55,6 +55,14 @@ public ManagementApiHttpResponse> l return list(id, ListUserAuthenticationMethodsRequestParameters.builder().build()); } + /** + * Retrieve detailed list of authentication methods associated with a specified user. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserAuthenticationMethodsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -78,6 +86,11 @@ public ManagementApiHttpResponse> l httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -152,12 +165,16 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse create( String id, CreateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -166,7 +183,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -218,8 +235,8 @@ public ManagementApiHttpResponse } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public ManagementApiHttpResponse> set( @@ -228,18 +245,22 @@ public ManagementApiHttpResponse<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public ManagementApiHttpResponse> set( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -248,7 +269,7 @@ public ManagementApiHttpResponse deleteAll(String id) { * Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. */ public ManagementApiHttpResponse deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,15 +388,19 @@ public ManagementApiHttpResponse get public ManagementApiHttpResponse get( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -419,26 +448,30 @@ public ManagementApiHttpResponse get } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse delete(String id, String authenticationMethodId) { return delete(id, authenticationMethodId, null); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse delete( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -483,7 +516,7 @@ public ManagementApiHttpResponse delete( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse update( String id, String authenticationMethodId) { @@ -494,7 +527,19 @@ public ManagementApiHttpResponse } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. + */ + public ManagementApiHttpResponse update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return update( + id, + authenticationMethodId, + UpdateUserAuthenticationMethodRequestContent.builder().build(), + requestOptions); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -502,20 +547,24 @@ public ManagementApiHttpResponse } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -524,7 +573,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java index 2d017cc5..84bbdde3 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java @@ -30,24 +30,28 @@ public RawAuthenticatorsClient(ClientOptions clientOptions) { } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse deleteAll(String id) { return deleteAll(id, null); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authenticators") - .build(); + .addPathSegments("authenticators"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java index b1492cc5..1ae0c25e 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java @@ -43,6 +43,14 @@ public ManagementApiHttpResponse> list(Stri return list(id, GetUserConnectedAccountsRequestParameters.builder().build()); } + /** + * Retrieve all connected accounts associated with the user. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, GetUserConnectedAccountsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all connected accounts associated with the user. */ @@ -66,6 +74,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java index 64bed11c..0617f71d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java @@ -34,24 +34,28 @@ public RawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public ManagementApiHttpResponse> get(String id) { return get(id, null); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("enrollments") - .build(); + .addPathSegments("enrollments"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java index b20d61cf..b74867d4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java @@ -44,14 +44,18 @@ public ManagementApiHttpResponse> list(String * List active federated connections tokensets for a provided user */ public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .build(); + .addPathSegments("federated-connections-tokensets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,15 +104,19 @@ public ManagementApiHttpResponse delete(String id, String tokensetId) { } public ManagementApiHttpResponse delete(String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId) - .build(); + .addPathSegment(tokensetId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java index 9e795c8a..320b8950 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java @@ -43,6 +43,14 @@ public ManagementApiHttpResponse> g return get(id, GetUserGroupsRequestParameters.builder().build()); } + /** + * List all groups to which this user belongs. + */ + public ManagementApiHttpResponse> get( + String id, RequestOptions requestOptions) { + return get(id, GetUserGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups to which this user belongs. */ @@ -74,6 +82,11 @@ public ManagementApiHttpResponse> g httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java index 5fe5447a..a2d46793 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java @@ -41,19 +41,19 @@ public RawIdentitiesClient(ClientOptions clientOptions) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -61,10 +61,10 @@ public RawIdentitiesClient(ClientOptions clientOptions) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public ManagementApiHttpResponse> link(String id) { return link(id, LinkUserIdentityRequestContent.builder().build()); @@ -73,19 +73,19 @@ public ManagementApiHttpResponse> link(String id) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -93,10 +93,42 @@ public ManagementApiHttpResponse> link(String id) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public ManagementApiHttpResponse> link(String id, RequestOptions requestOptions) { + return link(id, LinkUserIdentityRequestContent.builder().build(), requestOptions); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public ManagementApiHttpResponse> link(String id, LinkUserIdentityRequestContent request) { return link(id, request, null); @@ -105,19 +137,19 @@ public ManagementApiHttpResponse> link(String id, LinkUserIde /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -125,19 +157,23 @@ public ManagementApiHttpResponse> link(String id, LinkUserIde
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public ManagementApiHttpResponse> link( String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("identities") - .build(); + .addPathSegments("identities"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -146,7 +182,7 @@ public ManagementApiHttpResponse> link( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -196,7 +232,7 @@ public ManagementApiHttpResponse> link( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public ManagementApiHttpResponse> delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -205,20 +241,24 @@ public ManagementApiHttpResponse> de /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public ManagementApiHttpResponse> delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("identities") .addPathSegment(provider.toString()) - .addPathSegment(userId) - .build(); + .addPathSegment(userId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java index ff8fb9dd..fde9cf5d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java @@ -38,9 +38,9 @@ public RawLogsClient(ClientOptions clientOptions) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserLogsRequestParameters.builder().build()); @@ -48,9 +48,19 @@ public ManagementApiHttpResponse> list(String id) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListUserLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public ManagementApiHttpResponse> list(String id, ListUserLogsRequestParameters request) { return list(id, request, null); @@ -58,9 +68,9 @@ public ManagementApiHttpResponse> list(String id, ListUs /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public ManagementApiHttpResponse> list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { @@ -78,6 +88,11 @@ public ManagementApiHttpResponse> list( } QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java index 893c2dc7..f7143323 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java @@ -33,25 +33,29 @@ public RawMultifactorClient(ClientOptions clientOptions) { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public ManagementApiHttpResponse invalidateRememberBrowser(String id) { return invalidateRememberBrowser(id, null); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public ManagementApiHttpResponse invalidateRememberBrowser(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor/actions") - .addPathSegments("invalidate-remember-browser") - .build(); + .addPathSegments("invalidate-remember-browser"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -90,26 +94,30 @@ public ManagementApiHttpResponse invalidateRememberBrowser(String id, Requ } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public ManagementApiHttpResponse deleteProvider(String id, UserMultifactorProviderEnum provider) { return deleteProvider(id, provider, null); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public ManagementApiHttpResponse deleteProvider( String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor") - .addPathSegment(provider.toString()) - .build(); + .addPathSegment(provider.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java index f0c7ce99..af887962 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java @@ -36,14 +36,21 @@ public RawOrganizationsClient(ClientOptions clientOptions) { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserOrganizationsRequestParameters.builder().build()); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListUserOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public ManagementApiHttpResponse> list( String id, ListUserOrganizationsRequestParameters request) { @@ -51,7 +58,7 @@ public ManagementApiHttpResponse> list( } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public ManagementApiHttpResponse> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -65,6 +72,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java index bfcfa739..3ecfaa25 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java @@ -48,6 +48,14 @@ public ManagementApiHttpResponse> list( return list(id, ListUserPermissionsRequestParameters.builder().build()); } + /** + * Retrieve all permissions associated with the user. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserPermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all permissions associated with the user. */ @@ -71,6 +79,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -142,12 +155,16 @@ public ManagementApiHttpResponse create(String id, CreateUserPermissionsRe */ public ManagementApiHttpResponse create( String id, CreateUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +173,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -210,12 +227,16 @@ public ManagementApiHttpResponse delete(String id, DeleteUserPermissionsRe */ public ManagementApiHttpResponse delete( String id, DeleteUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -224,7 +245,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java index 8e393c6e..468cb010 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java @@ -45,6 +45,14 @@ public ManagementApiHttpResponse return list(userId, ListRefreshTokensRequestParameters.builder().build()); } + /** + * Retrieve details for a user's refresh tokens. + */ + public ManagementApiHttpResponse> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListRefreshTokensRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's refresh tokens. */ @@ -68,6 +76,11 @@ public ManagementApiHttpResponse httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -135,14 +148,18 @@ public ManagementApiHttpResponse delete(String userId) { * Delete all refresh tokens for a user. */ public ManagementApiHttpResponse delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("refresh-tokens") - .build(); + .addPathSegments("refresh-tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java index a02613d4..35b0673d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java @@ -44,13 +44,17 @@ public ManagementApiHttpResponse clear(String id, ClearAssessorsRequestCon */ public ManagementApiHttpResponse clear( String id, ClearAssessorsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("risk-assessments") - .addPathSegments("clear") - .build(); + .addPathSegments("clear"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -59,7 +63,7 @@ public ManagementApiHttpResponse clear( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java index 6f9fbd20..676aa2b4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java @@ -42,7 +42,7 @@ public RawRolesClient(ClientOptions clientOptions) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserRolesRequestParameters.builder().build()); @@ -50,7 +50,15 @@ public ManagementApiHttpResponse> list(String id) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListUserRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public ManagementApiHttpResponse> list(String id, ListUserRolesRequestParameters request) { return list(id, request, null); @@ -58,7 +66,7 @@ public ManagementApiHttpResponse> list(String id, ListU /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public ManagementApiHttpResponse> list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -72,6 +80,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -125,25 +138,29 @@ public ManagementApiHttpResponse> list( } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public ManagementApiHttpResponse assign(String id, AssignUserRolesRequestContent request) { return assign(id, request, null); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public ManagementApiHttpResponse assign( String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -152,7 +169,7 @@ public ManagementApiHttpResponse assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -196,7 +213,7 @@ public ManagementApiHttpResponse assign( /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public ManagementApiHttpResponse delete(String id, DeleteUserRolesRequestContent request) { return delete(id, request, null); @@ -204,16 +221,20 @@ public ManagementApiHttpResponse delete(String id, DeleteUserRolesRequestC /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public ManagementApiHttpResponse delete( String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -222,7 +243,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java index 020392ab..a21ed36a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java @@ -45,6 +45,14 @@ public ManagementApiHttpResponse> lis return list(userId, ListUserSessionsRequestParameters.builder().build()); } + /** + * Retrieve details for a user's sessions. + */ + public ManagementApiHttpResponse> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListUserSessionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's sessions. */ @@ -68,6 +76,11 @@ public ManagementApiHttpResponse> lis httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -135,14 +148,18 @@ public ManagementApiHttpResponse delete(String userId) { * Delete all sessions for a user. */ public ManagementApiHttpResponse delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("sessions") - .build(); + .addPathSegments("sessions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java index d9032df2..c94d851c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable list(String userId) { return this.rawClient.list(userId).body(); } + /** + * Retrieve details for a user's refresh tokens. + */ + public SyncPagingIterable list(String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).body(); + } + /** * Retrieve details for a user's refresh tokens. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/RolesClient.java b/src/main/java/com/auth0/client/mgmt/users/RolesClient.java index 3be2b7c4..4f43afd0 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RolesClient.java @@ -30,7 +30,7 @@ public RawRolesClient withRawResponse() { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -38,7 +38,15 @@ public SyncPagingIterable list(String id) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public SyncPagingIterable list(String id, ListUserRolesRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -46,7 +54,7 @@ public SyncPagingIterable list(String id, ListUserRolesRequestParameters r /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public SyncPagingIterable list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -54,16 +62,16 @@ public SyncPagingIterable list( } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public void assign(String id, AssignUserRolesRequestContent request) { this.rawClient.assign(id, request).body(); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public void assign(String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { this.rawClient.assign(id, request, requestOptions).body(); @@ -71,7 +79,7 @@ public void assign(String id, AssignUserRolesRequestContent request, RequestOpti /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public void delete(String id, DeleteUserRolesRequestContent request) { this.rawClient.delete(id, request).body(); @@ -79,7 +87,7 @@ public void delete(String id, DeleteUserRolesRequestContent request) { /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public void delete(String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { this.rawClient.delete(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java index 56304204..3ba0eebe 100644 --- a/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable list(String userId) { return this.rawClient.list(userId).body(); } + /** + * Retrieve details for a user's sessions. + */ + public SyncPagingIterable list(String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).body(); + } + /** * Retrieve details for a user's sessions. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java index b423d70e..4282d81a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java @@ -108,5 +108,15 @@ public Builder addAllRoles(List roles) { public AssignUserRolesRequestContent build() { return new AssignUserRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java index a36a0ce0..54c8a842 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java @@ -93,6 +93,10 @@ public interface ConnectionStage { public interface _FinalStage { ClearAssessorsRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    List of assessors to clear.

    */ @@ -172,5 +176,17 @@ public _FinalStage assessors(List assessors) { public ClearAssessorsRequestContent build() { return new ClearAssessorsRequestContent(connection, assessors, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java index 52a0d0ed..57cbfd38 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java @@ -188,6 +188,10 @@ public interface TypeStage { public interface _FinalStage { CreateUserAuthenticationMethodRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    A human-readable label to identify the authentication method.

    */ @@ -458,5 +462,17 @@ public CreateUserAuthenticationMethodRequestContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java index a422a33d..8fc1ec1a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllPermissions(List permissions) { public CreateUserPermissionsRequestContent build() { return new CreateUserPermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java index 2bffd343..1ef30bd4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllPermissions(List permissions) { public DeleteUserPermissionsRequestContent build() { return new DeleteUserPermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java index 09a108ea..b7fdb0d3 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java @@ -108,5 +108,15 @@ public Builder addAllRoles(List roles) { public DeleteUserRolesRequestContent build() { return new DeleteUserRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java index e57ece64..d4925bfb 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public GetUserConnectedAccountsRequestParameters build() { return new GetUserConnectedAccountsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java index 40c527b3..b2e3eb57 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java @@ -303,5 +303,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public GetUserGroupsRequestParameters build() { return new GetUserGroupsRequestParameters(fields, includeFields, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java index 0bbdb78b..b8ad0033 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java @@ -179,5 +179,15 @@ public Builder linkWith(String linkWith) { public LinkUserIdentityRequestContent build() { return new LinkUserIdentityRequestContent(provider, connectionId, userId, linkWith, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java index 1b9177d8..b5555144 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListRefreshTokensRequestParameters build() { return new ListRefreshTokensRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java index 00fc7d1d..84fd3d9f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java @@ -225,5 +225,15 @@ public ListUserAuthenticationMethodsRequestParameters build() { return new ListUserAuthenticationMethodsRequestParameters( page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java index fa4a45ae..16ea389a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java @@ -285,5 +285,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserLogsRequestParameters build() { return new ListUserLogsRequestParameters(page, perPage, sort, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java index 31ad9a38..904d481a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserOrganizationsRequestParameters build() { return new ListUserOrganizationsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java index de68b9be..0c757ded 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserPermissionsRequestParameters build() { return new ListUserPermissionsRequestParameters(perPage, page, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java index 4b2114ea..4ad13e37 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java @@ -223,5 +223,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserRolesRequestParameters build() { return new ListUserRolesRequestParameters(perPage, page, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java index 6238eeb0..ee8ed41a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListUserSessionsRequestParameters build() { return new ListUserSessionsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java index 981906ce..7378b3b8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java @@ -126,5 +126,15 @@ public UpdateUserAuthenticationMethodRequestContent build() { return new UpdateUserAuthenticationMethodRequestContent( name, preferredAuthenticationMethod, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java index 86ecc370..f87975b4 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java @@ -58,6 +58,14 @@ public AsyncRawTemplatesClient(ClientOptions clientOptions) { return list(ListVerifiableCredentialTemplatesRequestParameters.builder().build()); } + /** + * List a verifiable credential templates. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListVerifiableCredentialTemplatesRequestParameters.builder().build(), requestOptions); + } + /** * List a verifiable credential templates. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -179,10 +192,14 @@ public CompletableFuture> create( CreateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("verifiable-credentials/verification/templates") - .build(); + .addPathSegments("verifiable-credentials/verification/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -191,7 +208,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,13 +384,17 @@ public CompletableFuture> delete(String id) { * Delete a verifiable credential template. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -440,6 +465,15 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update( + id, UpdateVerifiableCredentialTemplateRequestContent.builder().build(), requestOptions); + } + /** * Update a verifiable credential template. */ @@ -453,11 +487,15 @@ public CompletableFuture> update( String id, UpdateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -466,7 +504,7 @@ public CompletableFuture response.body()); } + /** + * List a verifiable credential templates. + */ + public CompletableFuture> list( + RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * List a verifiable credential templates. */ @@ -107,6 +115,14 @@ public CompletableFuture upda return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update a verifiable credential template. + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update a verifiable credential template. */ diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java index edfdc64e..3f7b5ee2 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java @@ -52,6 +52,14 @@ public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListVerifiableCredentialTemplatesRequestParameters.builder().build(), requestOptions); + } + /** * List a verifiable credential templates. */ @@ -73,6 +81,11 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -144,10 +157,14 @@ public ManagementApiHttpResponse create( CreateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("verifiable-credentials/verification/templates") - .build(); + .addPathSegments("verifiable-credentials/verification/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +173,7 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -280,13 +301,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a verifiable credential template. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -335,6 +360,15 @@ public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update( + id, UpdateVerifiableCredentialTemplateRequestContent.builder().build(), requestOptions); + } + /** * Update a verifiable credential template. */ @@ -348,11 +382,15 @@ public ManagementApiHttpResponse update( String id, UpdateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -361,7 +399,7 @@ public ManagementApiHttpResponse list() { return this.rawClient.list().body(); } + /** + * List a verifiable credential templates. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * List a verifiable credential templates. */ @@ -105,6 +112,13 @@ public UpdateVerifiableCredentialTemplateResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update a verifiable credential template. + */ + public UpdateVerifiableCredentialTemplateResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update a verifiable credential template. */ diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java index 6c913de6..db4cdf4e 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java @@ -162,6 +162,10 @@ public interface WellKnownTrustedIssuersStage { public interface _FinalStage { CreateVerifiableCredentialTemplateRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage customCertificateAuthority(@Nullable OptionalNullable customCertificateAuthority); _FinalStage customCertificateAuthority(String customCertificateAuthority); @@ -290,5 +294,17 @@ public CreateVerifiableCredentialTemplateRequestContent build() { wellKnownTrustedIssuers, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java index ada4bfbd..d1719e15 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListVerifiableCredentialTemplatesRequestParameters build() { return new ListVerifiableCredentialTemplatesRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java index 880bdc1b..73f4b24a 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java @@ -370,5 +370,15 @@ public UpdateVerifiableCredentialTemplateRequestContent build() { return new UpdateVerifiableCredentialTemplateRequestContent( name, type, dialect, presentation, wellKnownTrustedIssuers, version, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java index d64e631b..43aeff40 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java @@ -64,11 +64,9 @@ public void testList() throws Exception { @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{\"id\":\"id\",\"msg\":\"msg\",\"url\":\"url\"}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testGet_response.json"))); GetActionVersionResponseContent response = client.actions().versions().get("actionId", "id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -77,77 +75,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"msg\": \"msg\",\n" - + " \"url\": \"url\"\n" - + " }\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -181,11 +110,9 @@ else if (actualResponseNode.has("kind")) @Test public void testDeploy() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{\"id\":\"id\",\"msg\":\"msg\",\"url\":\"url\"}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testDeploy_response.json"))); DeployActionVersionResponseContent response = client.actions().versions().deploy("actionId", "id", OptionalNullable.absent()); RecordedRequest request = server.takeRequest(); @@ -195,77 +122,8 @@ public void testDeploy() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"msg\": \"msg\",\n" - + " \"url\": \"url\"\n" - + " }\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testDeploy_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java index d954f74b..3173e564 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java @@ -75,11 +75,9 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"deployed_version\":{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]},\"installed_integration_id\":\"installed_integration_id\",\"integration\":{\"id\":\"id\",\"catalog_id\":\"catalog_id\",\"url_slug\":\"url_slug\",\"partner_id\":\"partner_id\",\"name\":\"name\",\"description\":\"description\",\"short_description\":\"short_description\",\"logo\":\"logo\",\"feature_type\":\"unspecified\",\"terms_of_use_url\":\"terms_of_use_url\",\"privacy_policy_url\":\"privacy_policy_url\",\"public_support_link\":\"public_support_link\",\"current_release\":{\"id\":\"id\",\"trigger\":{\"id\":\"id\"},\"required_secrets\":[{}],\"required_configuration\":[{}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testCreate_response.json"))); CreateActionResponseContent response = client.actions() .create(CreateActionRequestContent.builder() .name("name") @@ -130,128 +128,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"deployed_version\": {\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {}\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {}\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"installed_integration_id\": \"installed_integration_id\",\n" - + " \"integration\": {\n" - + " \"id\": \"id\",\n" - + " \"catalog_id\": \"catalog_id\",\n" - + " \"url_slug\": \"url_slug\",\n" - + " \"partner_id\": \"partner_id\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"short_description\": \"short_description\",\n" - + " \"logo\": \"logo\",\n" - + " \"feature_type\": \"unspecified\",\n" - + " \"terms_of_use_url\": \"terms_of_use_url\",\n" - + " \"privacy_policy_url\": \"privacy_policy_url\",\n" - + " \"public_support_link\": \"public_support_link\",\n" - + " \"current_release\": {\n" - + " \"id\": \"id\",\n" - + " \"trigger\": {\n" - + " \"id\": \"id\"\n" - + " },\n" - + " \"required_secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"required_configuration\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"status\": \"pending\",\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"deploy\": true,\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -285,11 +163,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"deployed_version\":{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]},\"installed_integration_id\":\"installed_integration_id\",\"integration\":{\"id\":\"id\",\"catalog_id\":\"catalog_id\",\"url_slug\":\"url_slug\",\"partner_id\":\"partner_id\",\"name\":\"name\",\"description\":\"description\",\"short_description\":\"short_description\",\"logo\":\"logo\",\"feature_type\":\"unspecified\",\"terms_of_use_url\":\"terms_of_use_url\",\"privacy_policy_url\":\"privacy_policy_url\",\"public_support_link\":\"public_support_link\",\"current_release\":{\"id\":\"id\",\"trigger\":{\"id\":\"id\"},\"required_secrets\":[{}],\"required_configuration\":[{}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testGet_response.json"))); GetActionResponseContent response = client.actions().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -298,128 +174,7 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"deployed_version\": {\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {}\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {}\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"installed_integration_id\": \"installed_integration_id\",\n" - + " \"integration\": {\n" - + " \"id\": \"id\",\n" - + " \"catalog_id\": \"catalog_id\",\n" - + " \"url_slug\": \"url_slug\",\n" - + " \"partner_id\": \"partner_id\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"short_description\": \"short_description\",\n" - + " \"logo\": \"logo\",\n" - + " \"feature_type\": \"unspecified\",\n" - + " \"terms_of_use_url\": \"terms_of_use_url\",\n" - + " \"privacy_policy_url\": \"privacy_policy_url\",\n" - + " \"public_support_link\": \"public_support_link\",\n" - + " \"current_release\": {\n" - + " \"id\": \"id\",\n" - + " \"trigger\": {\n" - + " \"id\": \"id\"\n" - + " },\n" - + " \"required_secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"required_configuration\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"status\": \"pending\",\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"deploy\": true,\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/ActionsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -467,11 +222,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"deployed_version\":{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]},\"installed_integration_id\":\"installed_integration_id\",\"integration\":{\"id\":\"id\",\"catalog_id\":\"catalog_id\",\"url_slug\":\"url_slug\",\"partner_id\":\"partner_id\",\"name\":\"name\",\"description\":\"description\",\"short_description\":\"short_description\",\"logo\":\"logo\",\"feature_type\":\"unspecified\",\"terms_of_use_url\":\"terms_of_use_url\",\"privacy_policy_url\":\"privacy_policy_url\",\"public_support_link\":\"public_support_link\",\"current_release\":{\"id\":\"id\",\"trigger\":{\"id\":\"id\"},\"required_secrets\":[{}],\"required_configuration\":[{}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testUpdate_response.json"))); UpdateActionResponseContent response = client.actions() .update("id", UpdateActionRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -510,128 +263,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"deployed_version\": {\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {}\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {}\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"installed_integration_id\": \"installed_integration_id\",\n" - + " \"integration\": {\n" - + " \"id\": \"id\",\n" - + " \"catalog_id\": \"catalog_id\",\n" - + " \"url_slug\": \"url_slug\",\n" - + " \"partner_id\": \"partner_id\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"short_description\": \"short_description\",\n" - + " \"logo\": \"logo\",\n" - + " \"feature_type\": \"unspecified\",\n" - + " \"terms_of_use_url\": \"terms_of_use_url\",\n" - + " \"privacy_policy_url\": \"privacy_policy_url\",\n" - + " \"public_support_link\": \"public_support_link\",\n" - + " \"current_release\": {\n" - + " \"id\": \"id\",\n" - + " \"trigger\": {\n" - + " \"id\": \"id\"\n" - + " },\n" - + " \"required_secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"required_configuration\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"status\": \"pending\",\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"deploy\": true,\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -665,11 +298,9 @@ else if (actualResponseNode.has("kind")) @Test public void testDeploy() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{\"id\":\"id\",\"msg\":\"msg\",\"url\":\"url\"}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testDeploy_response.json"))); DeployActionResponseContent response = client.actions().deploy("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -678,77 +309,8 @@ public void testDeploy() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"msg\": \"msg\",\n" - + " \"url\": \"url\"\n" - + " }\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsWireTest_testDeploy_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java index e77b08b0..1ad2a8c3 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java @@ -57,11 +57,9 @@ public void teardown() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testCreate_response.json"))); CreateBrandingThemeResponseContent response = client.branding() .themes() .create(CreateBrandingThemeRequestContent.builder() @@ -141,79 +139,8 @@ public void testCreate() throws Exception { Assertions.assertEquals("POST", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"body_text\": \"body_text\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedRequestBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testCreate_request.json"); JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); @@ -244,85 +171,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -356,11 +206,10 @@ else if (actualResponseNode.has("kind")) @Test public void testGetDefault() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody( + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGetDefault_response.json"))); GetBrandingDefaultThemeResponseContent response = client.branding().themes().getDefault(); RecordedRequest request = server.takeRequest(); @@ -370,85 +219,8 @@ public void testGetDefault() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGetDefault_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -482,11 +254,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGet_response.json"))); GetBrandingThemeResponseContent response = client.branding().themes().get("themeId"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -495,85 +265,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -616,11 +309,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testUpdate_response.json"))); UpdateBrandingThemeResponseContent response = client.branding() .themes() .update( @@ -702,79 +393,8 @@ public void testUpdate() throws Exception { Assertions.assertEquals("PATCH", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"body_text\": \"body_text\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedRequestBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testUpdate_request.json"); JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); @@ -805,85 +425,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java index b3b32b58..42b269cd 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java @@ -44,11 +44,9 @@ public void teardown() throws Exception { @Test public void testList() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"clients\":[{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"grant_types\":[\"grant_types\"],\"signing_keys\":[{}],\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\"},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testList_response.json"))); SyncPagingIterable response = client.clients() .list(ListClientsRequestParameters.builder() .fields(OptionalNullable.of("fields")) @@ -73,11 +71,9 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testCreate_response.json"))); CreateClientResponseContent response = client.clients() .create(CreateClientRequestContent.builder().name("name").build()); RecordedRequest request = server.takeRequest(); @@ -116,356 +112,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ClientsWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -499,11 +147,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testGet_response.json"))); GetClientResponseContent response = client.clients() .get( "id", @@ -518,356 +164,7 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/ClientsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -910,11 +207,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testUpdate_response.json"))); UpdateClientResponseContent response = client.clients() .update("id", UpdateClientRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -953,356 +248,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ClientsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -1336,11 +283,9 @@ else if (actualResponseNode.has("kind")) @Test public void testRotateSecret() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testRotateSecret_response.json"))); RotateClientSecretResponseContent response = client.clients().rotateSecret("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -1349,356 +294,8 @@ public void testRotateSecret() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ClientsWireTest_testRotateSecret_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java index 84794e9d..d20598b3 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java @@ -66,11 +66,10 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"strategy_overrides\":{\"pingfederate\":{\"enabled_features\":[\"scim\"]},\"ad\":{\"enabled_features\":[\"scim\"]},\"adfs\":{\"enabled_features\":[\"scim\"]},\"waad\":{\"enabled_features\":[\"scim\"]},\"google-apps\":{\"enabled_features\":[\"scim\"]},\"okta\":{\"enabled_features\":[\"scim\"]},\"oidc\":{\"enabled_features\":[\"scim\"]},\"samlp\":{\"enabled_features\":[\"scim\"]}}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody( + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testCreate_response.json"))); CreateConnectionProfileResponseContent response = client.connectionProfiles() .create(CreateConnectionProfileRequestContent.builder() .name("name") @@ -111,61 +110,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"organization\": {\n" - + " \"show_as_button\": \"none\",\n" - + " \"assign_membership_on_login\": \"none\"\n" - + " },\n" - + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ],\n" - + " \"strategy_overrides\": {\n" - + " \"pingfederate\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"ad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"adfs\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"waad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"google-apps\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"okta\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"oidc\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"samlp\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " }\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -316,11 +262,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"strategy_overrides\":{\"pingfederate\":{\"enabled_features\":[\"scim\"]},\"ad\":{\"enabled_features\":[\"scim\"]},\"adfs\":{\"enabled_features\":[\"scim\"]},\"waad\":{\"enabled_features\":[\"scim\"]},\"google-apps\":{\"enabled_features\":[\"scim\"]},\"okta\":{\"enabled_features\":[\"scim\"]},\"oidc\":{\"enabled_features\":[\"scim\"]},\"samlp\":{\"enabled_features\":[\"scim\"]}}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testGet_response.json"))); GetConnectionProfileResponseContent response = client.connectionProfiles().get("id"); RecordedRequest request = server.takeRequest(); @@ -330,61 +274,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"organization\": {\n" - + " \"show_as_button\": \"none\",\n" - + " \"assign_membership_on_login\": \"none\"\n" - + " },\n" - + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ],\n" - + " \"strategy_overrides\": {\n" - + " \"pingfederate\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"ad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"adfs\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"waad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"google-apps\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"okta\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"oidc\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"samlp\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " }\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -427,11 +318,10 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"strategy_overrides\":{\"pingfederate\":{\"enabled_features\":[\"scim\"]},\"ad\":{\"enabled_features\":[\"scim\"]},\"adfs\":{\"enabled_features\":[\"scim\"]},\"waad\":{\"enabled_features\":[\"scim\"]},\"google-apps\":{\"enabled_features\":[\"scim\"]},\"okta\":{\"enabled_features\":[\"scim\"]},\"oidc\":{\"enabled_features\":[\"scim\"]},\"samlp\":{\"enabled_features\":[\"scim\"]}}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody( + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json"))); UpdateConnectionProfileResponseContent response = client.connectionProfiles() .update("id", UpdateConnectionProfileRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -470,61 +360,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"organization\": {\n" - + " \"show_as_button\": \"none\",\n" - + " \"assign_membership_on_login\": \"none\"\n" - + " },\n" - + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ],\n" - + " \"strategy_overrides\": {\n" - + " \"pingfederate\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"ad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"adfs\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"waad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"google-apps\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"okta\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"oidc\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"samlp\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " }\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java index d7b66d58..e838c223 100644 --- a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java @@ -66,11 +66,9 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"messages\":{\"errors\":{\"key\":\"value\"},\"custom\":{\"key\":\"value\"}},\"languages\":{\"primary\":\"primary\",\"default\":\"default\"},\"translations\":{\"key\":{\"key\":\"value\"}},\"nodes\":[{\"id\":\"id\",\"type\":\"FLOW\",\"coordinates\":{\"x\":1,\"y\":1},\"alias\":\"alias\",\"config\":{\"flow_id\":\"flow_id\"}}],\"start\":{\"hidden_fields\":[{\"key\":\"key\"}],\"next_node\":\"$ending\",\"coordinates\":{\"x\":1,\"y\":1}},\"ending\":{\"redirection\":{\"delay\":1,\"target\":\"target\"},\"after_submit\":{\"flow_id\":\"flow_id\"},\"coordinates\":{\"x\":1,\"y\":1},\"resume_flow\":true},\"style\":{\"css\":\"css\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/FormsWireTest_testCreate_response.json"))); CreateFormResponseContent response = client.forms() .create(CreateFormRequestContent.builder().name("name").build()); RecordedRequest request = server.takeRequest(); @@ -109,75 +107,7 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"messages\": {\n" - + " \"errors\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"custom\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"languages\": {\n" - + " \"primary\": \"primary\",\n" - + " \"default\": \"default\"\n" - + " },\n" - + " \"translations\": {\n" - + " \"key\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"nodes\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"type\": \"FLOW\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"alias\": \"alias\",\n" - + " \"config\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " }\n" - + " }\n" - + " ],\n" - + " \"start\": {\n" - + " \"hidden_fields\": [\n" - + " {\n" - + " \"key\": \"key\"\n" - + " }\n" - + " ],\n" - + " \"next_node\": \"$ending\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " }\n" - + " },\n" - + " \"ending\": {\n" - + " \"redirection\": {\n" - + " \"delay\": 1,\n" - + " \"target\": \"target\"\n" - + " },\n" - + " \"after_submit\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " },\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"resume_flow\": true\n" - + " },\n" - + " \"style\": {\n" - + " \"css\": \"css\"\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"embedded_at\": \"embedded_at\",\n" - + " \"submitted_at\": \"submitted_at\"\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/FormsWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -211,11 +141,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"messages\":{\"errors\":{\"key\":\"value\"},\"custom\":{\"key\":\"value\"}},\"languages\":{\"primary\":\"primary\",\"default\":\"default\"},\"translations\":{\"key\":{\"key\":\"value\"}},\"nodes\":[{\"id\":\"id\",\"type\":\"FLOW\",\"coordinates\":{\"x\":1,\"y\":1},\"alias\":\"alias\",\"config\":{\"flow_id\":\"flow_id\"}}],\"start\":{\"hidden_fields\":[{\"key\":\"key\"}],\"next_node\":\"$ending\",\"coordinates\":{\"x\":1,\"y\":1}},\"ending\":{\"redirection\":{\"delay\":1,\"target\":\"target\"},\"after_submit\":{\"flow_id\":\"flow_id\"},\"coordinates\":{\"x\":1,\"y\":1},\"resume_flow\":true},\"style\":{\"css\":\"css\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/FormsWireTest_testGet_response.json"))); GetFormResponseContent response = client.forms().get("id", GetFormRequestParameters.builder().build()); RecordedRequest request = server.takeRequest(); @@ -225,75 +153,7 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"messages\": {\n" - + " \"errors\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"custom\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"languages\": {\n" - + " \"primary\": \"primary\",\n" - + " \"default\": \"default\"\n" - + " },\n" - + " \"translations\": {\n" - + " \"key\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"nodes\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"type\": \"FLOW\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"alias\": \"alias\",\n" - + " \"config\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " }\n" - + " }\n" - + " ],\n" - + " \"start\": {\n" - + " \"hidden_fields\": [\n" - + " {\n" - + " \"key\": \"key\"\n" - + " }\n" - + " ],\n" - + " \"next_node\": \"$ending\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " }\n" - + " },\n" - + " \"ending\": {\n" - + " \"redirection\": {\n" - + " \"delay\": 1,\n" - + " \"target\": \"target\"\n" - + " },\n" - + " \"after_submit\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " },\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"resume_flow\": true\n" - + " },\n" - + " \"style\": {\n" - + " \"css\": \"css\"\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"embedded_at\": \"embedded_at\",\n" - + " \"submitted_at\": \"submitted_at\"\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/FormsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -336,11 +196,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"messages\":{\"errors\":{\"key\":\"value\"},\"custom\":{\"key\":\"value\"}},\"languages\":{\"primary\":\"primary\",\"default\":\"default\"},\"translations\":{\"key\":{\"key\":\"value\"}},\"nodes\":[{\"id\":\"id\",\"type\":\"FLOW\",\"coordinates\":{\"x\":1,\"y\":1},\"alias\":\"alias\",\"config\":{\"flow_id\":\"flow_id\"}}],\"start\":{\"hidden_fields\":[{\"key\":\"key\"}],\"next_node\":\"$ending\",\"coordinates\":{\"x\":1,\"y\":1}},\"ending\":{\"redirection\":{\"delay\":1,\"target\":\"target\"},\"after_submit\":{\"flow_id\":\"flow_id\"},\"coordinates\":{\"x\":1,\"y\":1},\"resume_flow\":true},\"style\":{\"css\":\"css\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/FormsWireTest_testUpdate_response.json"))); UpdateFormResponseContent response = client.forms().update("id", UpdateFormRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -379,75 +237,7 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"messages\": {\n" - + " \"errors\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"custom\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"languages\": {\n" - + " \"primary\": \"primary\",\n" - + " \"default\": \"default\"\n" - + " },\n" - + " \"translations\": {\n" - + " \"key\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"nodes\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"type\": \"FLOW\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"alias\": \"alias\",\n" - + " \"config\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " }\n" - + " }\n" - + " ],\n" - + " \"start\": {\n" - + " \"hidden_fields\": [\n" - + " {\n" - + " \"key\": \"key\"\n" - + " }\n" - + " ],\n" - + " \"next_node\": \"$ending\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " }\n" - + " },\n" - + " \"ending\": {\n" - + " \"redirection\": {\n" - + " \"delay\": 1,\n" - + " \"target\": \"target\"\n" - + " },\n" - + " \"after_submit\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " },\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"resume_flow\": true\n" - + " },\n" - + " \"style\": {\n" - + " \"css\": \"css\"\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"embedded_at\": \"embedded_at\",\n" - + " \"submitted_at\": \"submitted_at\"\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/FormsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java index a8226a01..f2c783b0 100644 --- a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java @@ -125,11 +125,9 @@ else if (actualJson.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{\"block\":true,\"allow\":true,\"log\":true,\"redirect\":true,\"redirect_uri\":\"redirect_uri\"},\"match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"not_match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testGet_response.json"))); GetNetworkAclsResponseContent response = client.networkAcls().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -138,77 +136,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"description\": \"description\",\n" - + " \"active\": true,\n" - + " \"priority\": 1.1,\n" - + " \"rule\": {\n" - + " \"action\": {\n" - + " \"block\": true,\n" - + " \"allow\": true,\n" - + " \"log\": true,\n" - + " \"redirect\": true,\n" - + " \"redirect_uri\": \"redirect_uri\"\n" - + " },\n" - + " \"match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"not_match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"scope\": \"management\"\n" - + " },\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_at\": \"updated_at\"\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -242,11 +171,9 @@ else if (actualResponseNode.has("kind")) @Test public void testSet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{\"block\":true,\"allow\":true,\"log\":true,\"redirect\":true,\"redirect_uri\":\"redirect_uri\"},\"match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"not_match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testSet_response.json"))); SetNetworkAclsResponseContent response = client.networkAcls() .set( "id", @@ -304,77 +231,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"description\": \"description\",\n" - + " \"active\": true,\n" - + " \"priority\": 1.1,\n" - + " \"rule\": {\n" - + " \"action\": {\n" - + " \"block\": true,\n" - + " \"allow\": true,\n" - + " \"log\": true,\n" - + " \"redirect\": true,\n" - + " \"redirect_uri\": \"redirect_uri\"\n" - + " },\n" - + " \"match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"not_match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"scope\": \"management\"\n" - + " },\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_at\": \"updated_at\"\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testSet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -417,11 +275,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{\"block\":true,\"allow\":true,\"log\":true,\"redirect\":true,\"redirect_uri\":\"redirect_uri\"},\"match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"not_match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testUpdate_response.json"))); UpdateNetworkAclResponseContent response = client.networkAcls() .update("id", UpdateNetworkAclRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -460,77 +316,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"description\": \"description\",\n" - + " \"active\": true,\n" - + " \"priority\": 1.1,\n" - + " \"rule\": {\n" - + " \"action\": {\n" - + " \"block\": true,\n" - + " \"allow\": true,\n" - + " \"log\": true,\n" - + " \"redirect\": true,\n" - + " \"redirect_uri\": \"redirect_uri\"\n" - + " },\n" - + " \"match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"not_match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"scope\": \"management\"\n" - + " },\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_at\": \"updated_at\"\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/StreamTest.java b/src/test/java/com/auth0/client/mgmt/StreamTest.java index ac3a1fd4..5cd72174 100644 --- a/src/test/java/com/auth0/client/mgmt/StreamTest.java +++ b/src/test/java/com/auth0/client/mgmt/StreamTest.java @@ -69,6 +69,25 @@ public void testSseStreamWithTerminator() { assertEquals(expectedEvents, actualEvents); } + @Test + public void testSseEventDiscriminatedStream() { + List sseStrings = Arrays.asList( + mapToSseWithEvent("start", createMap("status", "pending")), + mapToSseWithEvent("end", createMap("status", "complete"))); + String input = String.join("\n" + "\n", sseStrings); + StringReader sseInput = new StringReader(input); + Stream sseStream = Stream.fromSseWithEventDiscrimination(Map.class, sseInput, "event"); + int expectedEvents = 2; + int actualEvents = 0; + for (Map eventData : sseStream) { + actualEvents++; + // Event-level discrimination includes the event field in the parsed result + assertTrue(eventData.containsKey("event")); + assertTrue(eventData.containsKey("data")); + } + assertEquals(expectedEvents, actualEvents); + } + @Test public void testStreamResourceManagement() throws IOException { StringReader testInput = new StringReader("{\"test\":\"data\"}"); @@ -89,6 +108,10 @@ private static String mapToSse(Map map) { return "data: " + mapToJson(map); } + private static String mapToSseWithEvent(String eventType, Map data) { + return "event: " + eventType + "\n" + "data: " + mapToJson(data); + } + private static Map createMap(String key, String value) { Map map = new HashMap<>(); map.put(key, value); diff --git a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java index 976b18d7..0fb371ff 100644 --- a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java @@ -38,11 +38,9 @@ public void teardown() throws Exception { @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"change_password\":{\"enabled\":true,\"html\":\"html\"},\"guardian_mfa_page\":{\"enabled\":true,\"html\":\"html\"},\"default_audience\":\"default_audience\",\"default_directory\":\"default_directory\",\"error_page\":{\"html\":\"html\",\"show_log_link\":true,\"url\":\"url\"},\"device_flow\":{\"charset\":\"base20\",\"mask\":\"mask\"},\"default_token_quota\":{\"clients\":{\"client_credentials\":{}},\"organizations\":{\"client_credentials\":{}}},\"flags\":{\"change_pwd_flow_v1\":true,\"enable_apis_section\":true,\"disable_impersonation\":true,\"enable_client_connections\":true,\"enable_pipeline2\":true,\"allow_legacy_delegation_grant_types\":true,\"allow_legacy_ro_grant_types\":true,\"allow_legacy_tokeninfo_endpoint\":true,\"enable_legacy_profile\":true,\"enable_idtoken_api2\":true,\"enable_public_signup_user_exists_error\":true,\"enable_sso\":true,\"allow_changing_enable_sso\":true,\"disable_clickjack_protection_headers\":true,\"no_disclose_enterprise_connections\":true,\"enforce_client_authentication_on_passwordless_start\":true,\"enable_adfs_waad_email_verification\":true,\"revoke_refresh_token_grant\":true,\"dashboard_log_streams_next\":true,\"dashboard_insights_view\":true,\"disable_fields_map_fix\":true,\"mfa_show_factor_list_on_enrollment\":true,\"remove_alg_from_jwks\":true,\"improved_signup_bot_detection_in_classic\":true,\"genai_trial\":true,\"enable_dynamic_client_registration\":true,\"disable_management_api_sms_obfuscation\":true,\"trust_azure_adfs_email_verified_connection_property\":true,\"custom_domains_provisioning\":true},\"friendly_name\":\"friendly_name\",\"picture_url\":\"picture_url\",\"support_email\":\"support_email\",\"support_url\":\"support_url\",\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_lifetime\":1.1,\"idle_session_lifetime\":1.1,\"ephemeral_session_lifetime\":1.1,\"idle_ephemeral_session_lifetime\":1.1,\"sandbox_version\":\"sandbox_version\",\"legacy_sandbox_version\":\"legacy_sandbox_version\",\"sandbox_versions_available\":[\"sandbox_versions_available\"],\"default_redirection_uri\":\"default_redirection_uri\",\"enabled_locales\":[\"am\"],\"session_cookie\":{\"mode\":\"persistent\"},\"sessions\":{\"oidc_logout_prompt_enabled\":true},\"oidc_logout\":{\"rp_logout_end_session_endpoint_discovery\":true},\"allow_organization_name_in_authentication_api\":true,\"customize_mfa_in_postlogin_action\":true,\"acr_values_supported\":[\"acr_values_supported\"],\"mtls\":{\"enable_endpoint_aliases\":true},\"pushed_authorization_requests_supported\":true,\"authorization_response_iss_parameter_supported\":true,\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"resource_parameter_profile\":\"audience\",\"phone_consolidated_experience\":true,\"enable_ai_guide\":true}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testGet_response.json"))); GetTenantSettingsResponseContent response = client.tenants() .settings() .get(GetTenantSettingsRequestParameters.builder() @@ -56,110 +54,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"change_password\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"guardian_mfa_page\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"default_audience\": \"default_audience\",\n" - + " \"default_directory\": \"default_directory\",\n" - + " \"error_page\": {\n" - + " \"html\": \"html\",\n" - + " \"show_log_link\": true,\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"device_flow\": {\n" - + " \"charset\": \"base20\",\n" - + " \"mask\": \"mask\"\n" - + " },\n" - + " \"default_token_quota\": {\n" - + " \"clients\": {\n" - + " \"client_credentials\": {}\n" - + " },\n" - + " \"organizations\": {\n" - + " \"client_credentials\": {}\n" - + " }\n" - + " },\n" - + " \"flags\": {\n" - + " \"change_pwd_flow_v1\": true,\n" - + " \"enable_apis_section\": true,\n" - + " \"disable_impersonation\": true,\n" - + " \"enable_client_connections\": true,\n" - + " \"enable_pipeline2\": true,\n" - + " \"allow_legacy_delegation_grant_types\": true,\n" - + " \"allow_legacy_ro_grant_types\": true,\n" - + " \"allow_legacy_tokeninfo_endpoint\": true,\n" - + " \"enable_legacy_profile\": true,\n" - + " \"enable_idtoken_api2\": true,\n" - + " \"enable_public_signup_user_exists_error\": true,\n" - + " \"enable_sso\": true,\n" - + " \"allow_changing_enable_sso\": true,\n" - + " \"disable_clickjack_protection_headers\": true,\n" - + " \"no_disclose_enterprise_connections\": true,\n" - + " \"enforce_client_authentication_on_passwordless_start\": true,\n" - + " \"enable_adfs_waad_email_verification\": true,\n" - + " \"revoke_refresh_token_grant\": true,\n" - + " \"dashboard_log_streams_next\": true,\n" - + " \"dashboard_insights_view\": true,\n" - + " \"disable_fields_map_fix\": true,\n" - + " \"mfa_show_factor_list_on_enrollment\": true,\n" - + " \"remove_alg_from_jwks\": true,\n" - + " \"improved_signup_bot_detection_in_classic\": true,\n" - + " \"genai_trial\": true,\n" - + " \"enable_dynamic_client_registration\": true,\n" - + " \"disable_management_api_sms_obfuscation\": true,\n" - + " \"trust_azure_adfs_email_verified_connection_property\": true,\n" - + " \"custom_domains_provisioning\": true\n" - + " },\n" - + " \"friendly_name\": \"friendly_name\",\n" - + " \"picture_url\": \"picture_url\",\n" - + " \"support_email\": \"support_email\",\n" - + " \"support_url\": \"support_url\",\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_lifetime\": 1.1,\n" - + " \"idle_session_lifetime\": 1.1,\n" - + " \"ephemeral_session_lifetime\": 1.1,\n" - + " \"idle_ephemeral_session_lifetime\": 1.1,\n" - + " \"sandbox_version\": \"sandbox_version\",\n" - + " \"legacy_sandbox_version\": \"legacy_sandbox_version\",\n" - + " \"sandbox_versions_available\": [\n" - + " \"sandbox_versions_available\"\n" - + " ],\n" - + " \"default_redirection_uri\": \"default_redirection_uri\",\n" - + " \"enabled_locales\": [\n" - + " \"am\"\n" - + " ],\n" - + " \"session_cookie\": {\n" - + " \"mode\": \"persistent\"\n" - + " },\n" - + " \"sessions\": {\n" - + " \"oidc_logout_prompt_enabled\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"rp_logout_end_session_endpoint_discovery\": true\n" - + " },\n" - + " \"allow_organization_name_in_authentication_api\": true,\n" - + " \"customize_mfa_in_postlogin_action\": true,\n" - + " \"acr_values_supported\": [\n" - + " \"acr_values_supported\"\n" - + " ],\n" - + " \"mtls\": {\n" - + " \"enable_endpoint_aliases\": true\n" - + " },\n" - + " \"pushed_authorization_requests_supported\": true,\n" - + " \"authorization_response_iss_parameter_supported\": true,\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"resource_parameter_profile\": \"audience\",\n" - + " \"phone_consolidated_experience\": true,\n" - + " \"enable_ai_guide\": true\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -193,11 +89,9 @@ else if (actualResponseNode.has("kind")) @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"change_password\":{\"enabled\":true,\"html\":\"html\"},\"guardian_mfa_page\":{\"enabled\":true,\"html\":\"html\"},\"default_audience\":\"default_audience\",\"default_directory\":\"default_directory\",\"error_page\":{\"html\":\"html\",\"show_log_link\":true,\"url\":\"url\"},\"device_flow\":{\"charset\":\"base20\",\"mask\":\"mask\"},\"default_token_quota\":{\"clients\":{\"client_credentials\":{}},\"organizations\":{\"client_credentials\":{}}},\"flags\":{\"change_pwd_flow_v1\":true,\"enable_apis_section\":true,\"disable_impersonation\":true,\"enable_client_connections\":true,\"enable_pipeline2\":true,\"allow_legacy_delegation_grant_types\":true,\"allow_legacy_ro_grant_types\":true,\"allow_legacy_tokeninfo_endpoint\":true,\"enable_legacy_profile\":true,\"enable_idtoken_api2\":true,\"enable_public_signup_user_exists_error\":true,\"enable_sso\":true,\"allow_changing_enable_sso\":true,\"disable_clickjack_protection_headers\":true,\"no_disclose_enterprise_connections\":true,\"enforce_client_authentication_on_passwordless_start\":true,\"enable_adfs_waad_email_verification\":true,\"revoke_refresh_token_grant\":true,\"dashboard_log_streams_next\":true,\"dashboard_insights_view\":true,\"disable_fields_map_fix\":true,\"mfa_show_factor_list_on_enrollment\":true,\"remove_alg_from_jwks\":true,\"improved_signup_bot_detection_in_classic\":true,\"genai_trial\":true,\"enable_dynamic_client_registration\":true,\"disable_management_api_sms_obfuscation\":true,\"trust_azure_adfs_email_verified_connection_property\":true,\"custom_domains_provisioning\":true},\"friendly_name\":\"friendly_name\",\"picture_url\":\"picture_url\",\"support_email\":\"support_email\",\"support_url\":\"support_url\",\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_lifetime\":1.1,\"idle_session_lifetime\":1.1,\"ephemeral_session_lifetime\":1.1,\"idle_ephemeral_session_lifetime\":1.1,\"sandbox_version\":\"sandbox_version\",\"legacy_sandbox_version\":\"legacy_sandbox_version\",\"sandbox_versions_available\":[\"sandbox_versions_available\"],\"default_redirection_uri\":\"default_redirection_uri\",\"enabled_locales\":[\"am\"],\"session_cookie\":{\"mode\":\"persistent\"},\"sessions\":{\"oidc_logout_prompt_enabled\":true},\"oidc_logout\":{\"rp_logout_end_session_endpoint_discovery\":true},\"allow_organization_name_in_authentication_api\":true,\"customize_mfa_in_postlogin_action\":true,\"acr_values_supported\":[\"acr_values_supported\"],\"mtls\":{\"enable_endpoint_aliases\":true},\"pushed_authorization_requests_supported\":true,\"authorization_response_iss_parameter_supported\":true,\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"resource_parameter_profile\":\"audience\",\"phone_consolidated_experience\":true,\"enable_ai_guide\":true}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testUpdate_response.json"))); UpdateTenantSettingsResponseContent response = client.tenants() .settings() .update(UpdateTenantSettingsRequestContent.builder().build()); @@ -237,110 +131,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"change_password\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"guardian_mfa_page\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"default_audience\": \"default_audience\",\n" - + " \"default_directory\": \"default_directory\",\n" - + " \"error_page\": {\n" - + " \"html\": \"html\",\n" - + " \"show_log_link\": true,\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"device_flow\": {\n" - + " \"charset\": \"base20\",\n" - + " \"mask\": \"mask\"\n" - + " },\n" - + " \"default_token_quota\": {\n" - + " \"clients\": {\n" - + " \"client_credentials\": {}\n" - + " },\n" - + " \"organizations\": {\n" - + " \"client_credentials\": {}\n" - + " }\n" - + " },\n" - + " \"flags\": {\n" - + " \"change_pwd_flow_v1\": true,\n" - + " \"enable_apis_section\": true,\n" - + " \"disable_impersonation\": true,\n" - + " \"enable_client_connections\": true,\n" - + " \"enable_pipeline2\": true,\n" - + " \"allow_legacy_delegation_grant_types\": true,\n" - + " \"allow_legacy_ro_grant_types\": true,\n" - + " \"allow_legacy_tokeninfo_endpoint\": true,\n" - + " \"enable_legacy_profile\": true,\n" - + " \"enable_idtoken_api2\": true,\n" - + " \"enable_public_signup_user_exists_error\": true,\n" - + " \"enable_sso\": true,\n" - + " \"allow_changing_enable_sso\": true,\n" - + " \"disable_clickjack_protection_headers\": true,\n" - + " \"no_disclose_enterprise_connections\": true,\n" - + " \"enforce_client_authentication_on_passwordless_start\": true,\n" - + " \"enable_adfs_waad_email_verification\": true,\n" - + " \"revoke_refresh_token_grant\": true,\n" - + " \"dashboard_log_streams_next\": true,\n" - + " \"dashboard_insights_view\": true,\n" - + " \"disable_fields_map_fix\": true,\n" - + " \"mfa_show_factor_list_on_enrollment\": true,\n" - + " \"remove_alg_from_jwks\": true,\n" - + " \"improved_signup_bot_detection_in_classic\": true,\n" - + " \"genai_trial\": true,\n" - + " \"enable_dynamic_client_registration\": true,\n" - + " \"disable_management_api_sms_obfuscation\": true,\n" - + " \"trust_azure_adfs_email_verified_connection_property\": true,\n" - + " \"custom_domains_provisioning\": true\n" - + " },\n" - + " \"friendly_name\": \"friendly_name\",\n" - + " \"picture_url\": \"picture_url\",\n" - + " \"support_email\": \"support_email\",\n" - + " \"support_url\": \"support_url\",\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_lifetime\": 1.1,\n" - + " \"idle_session_lifetime\": 1.1,\n" - + " \"ephemeral_session_lifetime\": 1.1,\n" - + " \"idle_ephemeral_session_lifetime\": 1.1,\n" - + " \"sandbox_version\": \"sandbox_version\",\n" - + " \"legacy_sandbox_version\": \"legacy_sandbox_version\",\n" - + " \"sandbox_versions_available\": [\n" - + " \"sandbox_versions_available\"\n" - + " ],\n" - + " \"default_redirection_uri\": \"default_redirection_uri\",\n" - + " \"enabled_locales\": [\n" - + " \"am\"\n" - + " ],\n" - + " \"session_cookie\": {\n" - + " \"mode\": \"persistent\"\n" - + " },\n" - + " \"sessions\": {\n" - + " \"oidc_logout_prompt_enabled\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"rp_logout_end_session_endpoint_discovery\": true\n" - + " },\n" - + " \"allow_organization_name_in_authentication_api\": true,\n" - + " \"customize_mfa_in_postlogin_action\": true,\n" - + " \"acr_values_supported\": [\n" - + " \"acr_values_supported\"\n" - + " ],\n" - + " \"mtls\": {\n" - + " \"enable_endpoint_aliases\": true\n" - + " },\n" - + " \"pushed_authorization_requests_supported\": true,\n" - + " \"authorization_response_iss_parameter_supported\": true,\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"resource_parameter_profile\": \"audience\",\n" - + " \"phone_consolidated_experience\": true,\n" - + " \"enable_ai_guide\": true\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/TestResources.java b/src/test/java/com/auth0/client/mgmt/TestResources.java new file mode 100644 index 00000000..f3d50fff --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/TestResources.java @@ -0,0 +1,36 @@ +package com.auth0.client.mgmt; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; + +public final class TestResources { + + private TestResources() { + // Utility class + } + + /** + * Loads a resource file from the classpath and returns its contents as a String. + * @param path the resource path (e.g., "/wire-tests/MyTest_testMethod_request.json") + * @return the contents of the resource file + * @throws RuntimeException if the resource cannot be found or read + */ + public static String loadResource(String path) { + try (InputStream is = TestResources.class.getResourceAsStream(path)) { + if (is == null) { + throw new RuntimeException("Resource not found: " + path); + } + ByteArrayOutputStream result = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int length; + while ((length = is.read(buffer)) != -1) { + result.write(buffer, 0, length); + } + return result.toString(StandardCharsets.UTF_8.name()); + } catch (IOException e) { + throw new RuntimeException("Failed to load resource: " + path, e); + } + } +}